Error in restarting mysql server

mnmhm2004

Member
Sep 26, 2006
22
0
151
Hi
i have this error when restarting the mysql server :

Code:
/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 "mysql has 

failed").
to figure the problem:
this error appear when i restart mysql for firest time
but when i try to restart it again its works fine

any advice or help plz

thanks in advance
:)
 
Last edited:

hikaro

Well-Known Member
Nov 22, 2005
99
0
166
i have this issue if i restart my server,so every time after i restarted my server, i need to manually restart mysql again

anyone know why?
 

MaestriaNick

Well-Known Member
Aug 6, 2008
159
3
68
Hi ,

Please run ,

# chkconfig --list| grep mysql

# chkconfig mysql on