ERROR 2002 (HY000):Can‘t connect to local MyS...
来源:百度文库 编辑:神马文学网 时间:2024/04/29 21:03:23
ERROR 2002 (HY000):Can‘t connect to local MySQL server
2007年05月20日 星期日 下午 03:13
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (2)
============================================================
先查看 /etc/rc.d/init.d/mysqld status 看看m y s q l 是否已经启动.
另外看看是不是权限问题.
------------------------------------------------------------------------------------
[root@localhost beinan]#chown -R mysql:mysql /var/lib/mysql
[root@localhost beinan]# /etc/init.d/mysqld start
启动 MySQL: [ 确定 ]
[root@localhost lib]# mysqladmin -uroot password ‘123456‘
[root@localhost lib]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.1.11
Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the buffer
2007年05月20日 星期日 下午 03:13
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (2)
============================================================
先查看 /etc/rc.d/init.d/mysqld status 看看m y s q l 是否已经启动.
另外看看是不是权限问题.
------------------------------------------------------------------------------------
[root@localhost beinan]#chown -R mysql:mysql /var/lib/mysql
[root@localhost beinan]# /etc/init.d/mysqld start
启动 MySQL: [ 确定 ]
[root@localhost lib]# mysqladmin -uroot password ‘123456‘
[root@localhost lib]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.1.11
Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the buffer
ERROR 2002 (HY000):Can‘t connect to local MyS...
总结ERROR 2002 (HY000):Can't connect to...之错误
mysql -Can‘t connect to local MySQL server through socket
Mysql “Can’t connect to local MySQL server” 的解决办法
Can't connect to MySQL server on 'localhost' (10061)解决方法
Can't connect to MySQL server on 'localhost' - 帮助 - Powered by Comsenz
error: system error, can't open file '****' for input ccs
【转】AXD:RDI severe error 00602:can't halt...
Beijing shuts most local gov't liaison offices to fight corruption
Can’t Stop Love
Can't Tell Me Nothin'
2009: Products I Can't Live Without
Don't see how it can
25 Sites We Can't Live Without
Connect Google Talk to AIM, MSN, & Yahoo - Bi...
Social Network Aims To Connect Teachers Around the World
we can make it to order
Communist leadership urge local bureaucrats to implement scientific development
China, France pledge to upgrade local-level cooperation
kk Communist leadership urge local bureaucrats to implement scientific development
Communist leadership urge local bureaucrats to implement scientific development ll
LLCommunist leadership urge local bureaucrats to implement scientific development
How to DELETE Windows Local & Domain Cached Passwords
关于“cannot find a valid peer process to connect to”错误的解决方案