找不到MySql服务器PID

前端之家收集整理的这篇文章主要介绍了找不到MySql服务器PID前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我有带有Nginx的CentOS 6.4.

当我尝试启动/停止/重启mysql服务器(/etc/init.d/MysqLd restart)时出现此错误

MysqL server PID file could not be found!                  [Failed]
Starting MysqL..The server quit without updating PID file ([Failed]/MysqL/MysqLd.pid).

我该怎么做才能解决这个问题?

谢谢!

最佳答案
我在CentOS 6.3上遇到了同样的错误,我将MysqL升级到5.6.14,但我保留了旧的my.cnf文件.升级后,MysqL不再启动,给出了与您描述的相同的错误.

问题是我在my.cnf中有这个设置:

table_cache=2048

根据这个链接table_cache renamed table_open_cache ..

“Seem like in 5.5 the system variable table_cache was renamed
table_open_cache..
In 5.6 MysqLd fails if it finds an unknown variable
this means that upgrades from versions earlier than 5.5 can have
problems if table_cache is specified in my.cnf.”

我将上面的行更改为

table_open_cache=2048

MysqL开始很完美.

所以,如果你有MysqL 5.5(也许是一个较旧的my.cnf),我建议你做以下事情:

>从/ etc文件夹中删除my.cnf并尝试启动MysqL
>如果MysqL启动,问题出在my.cnf上.逐个注释/取消注释所有设置,以查看导致问题的原因.

希望这可以帮助.

原文链接:https://www.f2er.com/nginx/434981.html

猜你在找的Nginx相关文章