error: 'Can't connect to local MySQL_MySQL
程序员文章站
2022-06-14 16:23:40
...
[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
/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
上一篇: PHP高级对象构建 多个构造函数的使用_php技巧
下一篇: 微信小程序想要什么
推荐阅读
-
Can't connect to local MySQL server through socket &
-
error: 'Can't connect to local MySQL_MySQL
-
MySQL "Can't connect to local mysql server
-
[MySQL] ERROR 2002(HY000): Can't connect to local My
-
error: 'Can't connect to local MySQL_MySQL
-
ERROR 2002 (HY000): Can't connect to local MySQL ser
-
ERROR 2003 (HY000): Can't connect to MySQL server
-
Can't connect to local MySQL server through sock_MySQL
-
ERROR 2003 (HY000): Can't connect to MySQL server
-
Can't connect to local MySQL server through sock_MySQL