I could be wrong but this may have something to do with ownership and permissions of the socket file. I recently upgraded my MySQL version and had basically the same problem. I can't remember though if I had to change the ownership to root.root or mysql.mysql.
HTH, Ed On Mon, 26 Sep 2005, Sandhya Reddy wrote: > Hello, > I have recently installed FC3 and now I have > PHP(4.4.9) and MYSQL(3.23) which got installed along > with FC3. > I'm able to connect to MYSQL from command prompt. > But the problem fires when I do the same from a PHP > script. The error I get is "Can't connect to local > MySQL server through socket > '/var/lib/mysql/mysql.sock' (13)". > And I'm sure that MYSQL server is running and able tp > connect from command prompt. > > > > I have been searching on the net for the same from the > last 3 days but ended with nothing. > > > > I have changed php.ini to include the > mysql_default_socket=/var/lib/mysql/mysql.sock. > > > > even then it doen't work. > > Earlier I had FC1 and everthing was working fine! > > > > Could please suggest me a solution to tackle this > problem. > > Thanks in Advance > Sandhya > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED] > -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]