Starting MySQL.Manager of pid-file quit without updating fi[失败]

来源:互联网 发布:自动弹幕软件 编辑:程序博客网 时间:2024/06/06 01:46

之前机子装过mysql,所以可能存在遗留文件,我删除了/ect/my.cnf,然后,使用下面方法:

rm -rf /var/lib/mysql
cd mysql 
scripts/mysql_install_db –user=mysql 
chown -R root . 
chown -R mysql data
chgrp -R mysql . 
cp support-files/mysql.server /etc/init.d/mysql 
cp support-files/my-medium.cnf /etc/my.cnf 
/etc/init.d/mysql start



原创粉丝点击