首页 > 数据库技术 > 详细

mysql 启动错误

时间:2015-04-12 12:04:05      阅读:221      评论:0      收藏:0      [点我收藏+]

[root@itcast02 itcast]# /etc/init.d/mysql restart  //启动服务

 ERROR! MySQL server PID file could not be found!
Starting MySQL................ ERROR! The server quit without updating PID file (/var/lib/mysql/itcast02.pid).//出错


[root@itcast02 itcast]#mysql -u root -p //登录


ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (2) //错误


[root@itcast02 itcast]# /etc/rc.d/init.d/mysqld status   //查看状态失败

bash: /etc/rc.d/init.d/mysqld: No such file or directory


[root@itcast02 itcast]#chown -R mysql:mysql /var/lib/mysql    //设置权限


[root@itcast02 itcast]#/etc/init.d/mysql restart     //重新启动

 ERROR! MySQL server PID file could not be found!

Starting MySQL...... SUCCESS!    //启动成功


[root@itcast02 itcast]#mysql -u root -p  //再次登录 成功

mysql 启动错误

原文:http://blog.csdn.net/pengweid/article/details/45008457

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