Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
2014-09-07 13:55
337 查看
[root@localhost ~]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@localhost ~]# systemctl start mysqld.service
[doctor@localhost ~]$ mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 5.5.38-MariaDB MariaDB Server
Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> exit
Bye
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@localhost ~]# systemctl start mysqld.service
[doctor@localhost ~]$ mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 5.5.38-MariaDB MariaDB Server
Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> exit
Bye
相关文章推荐
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' 解决办法
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
- MySQL "Can't connect to local mysql server through socket '/var/lib/mysql/mysql.sock'"问题的解决办法
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
- connection to dat Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
- linux下mysql连接失败: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
- MYSQL启动异常:Can 't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock '(2) "
- #2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) 服务器无响应(或者
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'(2)
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (
- error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
- error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'