hi ritesh.
will you announce it here on the main page when it is fixed?
thanks
p.s. in the meantime i have simply changed the socket location.
in case someone else has this problem, here is how i fixed it:
if the directory /var/lib/mysql doesn't exist than create it and chown to user mysql:
mkdir /var/lib/mysql; chown mysql /var/lib/mysql
i then edited the /etc/my.cnf file and specified
[mysqld]
socket=/var/lib/mysql/mysql.socket
[client]
socket=/var/lib/mysql/mysql.socket
i then restarted the mysql server (etc/init.d/mysql restart)
that is enough for mysql. however if you use it with php, the chances are that php was compiled with a different default mysql socket location (e.g. /tmp/mysql.sock). in which case you have to edit the php.ini file and find the variable “mysql.default_socket”. set this to the above value
mysql.default_socket = /var/lib/mysql/mysql.socket
and restart apache to re-read the php.ini file
the mysql docs are here:
http://dev.mysql.com/doc/mysql/en/problems…mysql-sock.html
hth