Page 1 of 1

MySQL server doesnt start after update

Posted: Tue Jul 05, 2011 2:08 pm
by plymws
Hi all,

I did a yum-update on my CentOS 5 server today. Everything went through fine and the output from yum was as expected. however the mySQL server won't start. If I try a service mysqld (re)start I get

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Everything was fine before the update. Any ideas what I can try to get mysql started again ?

Re: MySQL server doesnt start after update

Posted: Tue Jul 05, 2011 5:06 pm
by mikeshinn
Does the directory "/var/lib/mysql/" exist and can mysql write to it? Was mysql already running and attached to the socket?