码迷,mamicode.com
首页 > 数据库 > 详细

mysql 启动错误

时间:2015-04-12 12:05:44      阅读:156      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!