Error: 'Can't connect to local MySQL server through socket '/var/lib/mysql. sock' (2) ', connectmysql. sock[Root @ luozhonghua ~] #/Usr/bin/mysqladmin-u root password 'aaaaa'/Usr/bin/mysqladmin: connect to server at 'localhost' failedError: 'Can't
Error message:
Error 2002 (hy000): Can't connect to local MySQL server through socket '/var/lib/MySQL. Sock' (2)
1. Check/etc/rc. d/init. d/mysqld status to see if m y s q l has been started.Check whether the permission is correct.2. Check whether
Can't connect to local MySQL server through socket '/var/run/mysqld. sock' (2), mysqldmysqld. sock
I encountered a small problem connecting to the mysql database on ubuntu today.
Can't connect to local MySQL server through socket '/var/run/mysqld.
Mysql startup exception mysql. how to solve the problem of starting mysql with sock and learn to view the Error Log: mysql. sock loss, mysqld_safe start error Reprinted from: www.cnblogs.comsuper-luckypsuperlucky.html I am still a cainiao, below is
The PHP site prompts that "varlibmysqlmysql. sock" does not exist.
[Mysql]
[Client]
Socket =/tmp/mysql. sock
# Write the correct position of mysql. sock here, usually either under/tmp/or under/var/lib/mysql/
My website is CentOS6.3 + MySQL5.1.57. After the server is restarted, the following error occurs when you log on to mysql-uroot-p: ERROR2002 (HY000): CantconnecttolocalMySQLserverthroughsockettmpmysql. sock (2) So I checked the mysql status: etcrc.
I encountered a problem connecting to the MySQL database today: Can't connect to local MySQL server through socket '/tmp/MySQL. Sock' (2)
Refer to online related methods, including:
When mysql is started, the following solution is displayed:/tmp/mysql. sock does not exist. mysqlmysql. sockWhen mysql is started, the following solution is displayed:/tmp/mysql. sock does not exist.
Troubleshooting when mysql is started (mysql 5.
The main cause of this problem is that you cannot use tmpmysql. sock is connected to the server, and the standard php configuration is using tmpmysql. sock, but some mysql installation methods will be mysql. put sock in varlibmysql. sock or
Today, my colleague A found me that Mysql server X has A high load and queries are slow. After a while of failure, we watched it together.
[Root @ redhat var] # uname-
Linux xxx 2.6.18-128. el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.