I am having problem while connecting php with mysql. Mysql server and client is running fine.And mysql socket file is in
/var/mysql/mysql.sock
But while connecting like :
$con = mysql_connect("localhost","root","pass");
It says
Socket operation on non-socket (trying to connect via unix:///var/mysql/mysql.sock)
Any clue?