Starting MySQL.. ERROR! The server quit without updating PID file (/var/mysql/data/feng.pid). 问题解决方案
1.首先应该想到 授权 chown -R mysql:mysql /var/mysql/data 给mysql 用户
2.vim /etc/my.cnf
[mysqld] datadir = /var/mysql/data log_error = /usr/local/mysql/data/error tmpdir = /var/tmp
3.vim /etc/hosts
127.0.0.1 root
4. /usr/local/mysql/script/mysql_install_db --user=mysql --basedir=/usr/local/mysql/ --data=/var/mysql/data/ & 生成系统数据库
5.接下来我们通过生成系统数据库的方式将进程文件写入进去
/usr/local/mysql/bin/mysqld_safe --user=mysql --basedir=/usr/local/mysql/ --data=/var/mysql/data/ &
&是后台 运行的意思
接着重启一下就好了 祝好