|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
I don't know how to solve error
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) when i restart SQL Server (MySQL) on WHM it's error /usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)' Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists! mysql has failed, please contact the sysadmin (result was "mysql has failed"). |
|
|||
|
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock
Same with me..
Mine : WHM 11.15.0 cPanel 11.18.5-R24173 CENTOS Enterprise 5 x86_64 on standard - WHM X v3.1.0 /scripts/mysqlup --force completed, but still have the same problem.. error message : /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! mysql has failed, please contact the sysadmin (result was "Warning, no valid mysql.sock file found.mysql has failed"). checking /var/lib/mysql/mysql.sock does not exist.. ![]() /scripts/mysqlconnectioncheck gives nothing.. Any clue ?? Last edited by romyloice; 05-08-2008 at 12:07 AM. |
|
||||
|
Hello,
Did you check the partition size on file system?? I mean may be /var is 100% full on server. Thats the reason mysql could not be started on server. MySQL sock file not found ==================== = killall -9 mysqld = service mysql stop =cp var/lib/mysql/mysql.sock var/lib/mysql/mysql.sock_backup = rm -f /var/lib/mysql/mysql.sock = service mysql start = ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock = /scripts/restartsrv mysql Hope this will help you to resolve this issue as it helps me always ![]() Shital |
|
|||
|
Try and open up your /etc/my.cnf file and see if you can find this:
Code:
[mysql.server] user=mysql basedir=/var/lib Code:
[mysql.server] user=mysql #basedir=/var/lib |
|
|||
|
Quote:
I just made that change and now my mysql server is up and running after having the same problem as the original poster..... |
|
||||
|
Quote:
For typical installs via RPM, this directive is not needed and should not be used. For a more exhaustive description of this directive, please consult the MySQL manual. |
|
|||
|
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|