Can't connect to local MySQL server through socket

突然发现linux服务器上的网站登录不了了,用SSH登录linux查询下问题,发现mysql没有启动,报Can't connect to local MySQL server through socket

用service mysqld start启动不了,,

Timeout error occurred trying to start MySQL Daemon.
Starting MySQL:                                            [FAILED]

又变更了一下mysql的权限,

 #chown -R mysql:mysql /var/lib/mysql

然后从 /etc/rc.d/init.d/mysqld start目录启动

OK了,
Starting MySQL:                                            [  OK  ]

posted @ 2011-11-30 10:16  lice  阅读(180)  评论(0编辑  收藏  举报