设为首页 加入收藏

TOP

mysql启动错误
2015-11-21 02:05:44 来源: 作者: 【 】 浏览:2
Tags:mysql 启动 错误

[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增加用户并赋予各种权限 下一篇搞定linux上MySQL编程(一):lin..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: