SQL Failing / Sock File Missing

Hello,

Seem to be having some problems with SQL

root@express1 [~]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

AND

Waiting for mysql to restart.... . . . . . . . . . . finished.

mysql status

/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").


Now, /var/lib/mysql/mysql.sock doesn't exist.

Here's what I have tried:



The system is running CentOS 4.2.

Heres my my.cnf file from /etc/my.cnf

[mysqld]
set-variable = max_connections=500
safe-show-database

Anyone have any suggestions?

 

 

 

 

Top