CentOS
环境:centos6.5 mysql-5.6.17.tar.gz
wgethttp://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.17.tar.gz
yum install -y gcc gcc-c++ gcc-c++.x86_64 bison.x86_64 libaio.x86_64 cmake.x86_64 ncurses-devel.x86_64
说明:我不知道这个系统还能用到什么地方!他的运作方式是这样的,客户在其他地方比如掏宝购买了 你得卡,然后在你的网站进行冲值,你得有人登陆并看着后台,如果有人冲值,就会刷出记录,手工冲值完毕后,你得点击 [冲值完毕],客户的页面 就会返回 冲值信息!安装:上传所有文件,倒入(sql.txt)mysql数据库,使用myphpadminphplib 777phplib/sys.php 777phplib
0
后面根据官方文档: MySQL 5.6 Manual 2.8.2 Installing MySQL Using a Standard Source Distribution
<code>shell></code><strong><code> groupadd mysql</code></strong>shell> <strong><code>useradd -r -g mysql mysql<br /></code></strong>
shell> <strong><code>tar zxvf mysql-<em><code>VERSION</code></em>.tar.gz</code></strong>shell> <strong><code>cd mysql-<em><code>VERSION</code></em></code></strong>shell> <strong><code>cmake .</code></strong>shell> <strong><code>make</code></strong>shell> <strong><code>make install<br /></code></strong>shell> <strong><code>cd /usr/local/mysql</code></strong>shell> <strong><code>chown -R mysql .</code></strong>shell> <strong><code>chgrp -R mysql .</code></strong>shell> <strong><code>scripts/mysql_install_db --user=mysql</code></strong>shell> <strong><code>chown -R root .</code></strong>shell> <strong><code>chown -R mysql data</code></strong>shell> <strong><code>bin/mysqld_safe --user=mysql &<br />安装完了 ,启动的时候就报错:<br />/usr/local/mysql/bin/mysqld: Can't create/write to file '/var/run/mysqld/mysqld.pid' (Errcode: 2 - No such file or directory)<br />cd /var/run/<br />mkdir mysqld<br />chown -R mysql mysqld<br />chgrp -R mysql mysqld<br />再重新启动:<br />[ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist<br />修改:/usr/local/mysql/my.cnf<br />datadir =/usr/local/mysql/data<br />重启电脑 <br />mysql.server start 启动成功<br />./bin/mysql<br />ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)<br />ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock<br />执行这个命令后,成功运行mysql<br /></code></strong>
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号