Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
2009-02-24 14:43
453 查看
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
if you got this error info in linux, it it because you have not start mysql ,
you can run the following command to start mysql in the directory mysql/bin
[root@uswin2003sp1 bin]# service mysqld start
启动 MySQL: [确定]
[root@uswin2003sp1 bin]#
[root@uswin2003sp1 bin]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 2 to server version: 5.0.22
Type 'help;' or '/h' for help. Type '/c' to clear the buffer.
mysql>
if you got this error info in linux, it it because you have not start mysql ,
you can run the following command to start mysql in the directory mysql/bin
[root@uswin2003sp1 bin]# service mysqld start
启动 MySQL: [确定]
[root@uswin2003sp1 bin]#
[root@uswin2003sp1 bin]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 2 to server version: 5.0.22
Type 'help;' or '/h' for help. Type '/c' to clear the buffer.
mysql>
相关文章推荐
- #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)
- 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'
- 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'
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (
- linux下mysql连接失败: 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' (2)
- 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)'
- ERROR 2002 (HY000): 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'
- 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'"问题的解决办法
- mysql启动Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'