首页 > 数据库技术 > 详细

ERROR! MySQL server PID file could not be found!的解决方法

时间:2016-01-25 17:05:45      阅读:272      评论:0      收藏:0      [点我收藏+]

启动MySQL服务

[root@test vhosts]# /etc/init.d/mysqld restart

 

提示错误:

ERROR! MySQL server PID file could not be found!
Starting MySQL... ERROR! The server quit without updating PID file (/alidata/server/mysql/data/test.pid).

在/alidata/server/mysql/data目录下创建test.pid 文件并给相应的权限,文本给一个未使用的PID数字的值,然后再重新启动MySQL服务。

 

如果启动MySQL服务的时候发现该文件已被删除,则可以使用一下命令启动,

/alidata/server/mysql/bin/mysqld --basedir=/alidata/server/mysql --datadir=/alidata/server/mysql/data/

 

启动之后,会提示权限错误,不用管它,在查看MySQL进程的时候会发现MySQL已成功启动。

ERROR! MySQL server PID file could not be found!的解决方法

原文:http://www.cnblogs.com/rnckty/p/5157521.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!