网站地图    收藏   

主页 > 后端 > mysql数据库 >

mysql启动错误 - mysql数据库栏目 - 自学php

来源:自学PHP网    时间:2015-04-16 10:50 作者: 阅读:

[导读] [root@itcast02 itcast] etc init d mysql restart 启动服务 ERROR! MySQL server PID file could not be found!Starting MySQL ERROR! The server quit without u...

[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 //再次登录 成功

自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习

京ICP备14009008号-1@版权所有www.zixuephp.com

网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com

添加评论