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

error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'

时间:2014-07-15 12:54:54      阅读:258      评论:0      收藏:0      [点我收藏+]

标签:mysql

 [root@luozhonghua ~]#   /usr/bin/mysqladmin -u root password ‘aaaaaa‘
/usr/bin/mysqladmin: connect to server at ‘localhost‘ failed
error: ‘Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (2)‘
Check that mysqld is running and that the socket: ‘/var/lib/mysql/mysql.sock‘ exists!
解决:
1》/etc/rc.d/init.d/mysqld status 看看mysql是否已经启动
2》service mysqld start

error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)',布布扣,bubuko.com

error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'

标签:mysql

原文地址:http://blog.csdn.net/luozhonghua2014/article/details/37771515

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!