您的位置:首页 > 博客中心 > 数据库 >

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

时间:2022-03-10 18:01

 [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

热门排行

今日推荐

热门手游