萬盛學電腦網

 萬盛學電腦網 >> 數據庫 >> mysql教程 >> mysql錯誤server PID file could not be found

mysql錯誤server PID file could not be found

  在centos5.2下安裝5.1.30的時候出現如下mysql錯誤

  MySQL manager orserverPIDfilecould not befound![FAILED]

  Starting MySQL.Manager of pid-file quit without updating file.[FAILED]mysql

  查看錯誤日志

  默認的mysql錯誤日志是在/usr/local/mysql/data 下面 more ****.err 有下面的信息

  090302 02:27:26 mysqld_safe mysqld from pid file /opt/mysql/web2.pid ended

  090302 02:30:03 mysqld_safe Starting mysqld daemon with databases from /opt/mysql

  090302 2:30:03 [ERROR] /usr/local/mysql/libexec/mysqld: unknown option'--skip-federated'

  090302 2:30:03 [ERROR] Aborting

  解決方法:

  只要將/etc/my.cnf裡面的 skip federated注釋掉即可。

copyright © 萬盛學電腦網 all rights reserved