Page 1 of 1

What does this error mean?

Posted: Mon Jun 05, 2006 10:34 am
by Luke
Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /vservers/mytreasuredpet/htdocs/php/phpfm/incl/classes.inc.php on line 82

Posted: Mon Jun 05, 2006 10:41 am
by RobertGonzalez
That can be any of a number of things. I think I had that problem one time after upgrading the mysql server. I think I forgot to start the server after the change.

Has anything changed on your system?

Posted: Mon Jun 05, 2006 10:50 am
by Luke
never connected before this, but I know it has been used before because the site has phpmyadmin... and it works fine with tables in it and everything

Posted: Mon Jun 05, 2006 11:38 am
by RobertGonzalez
Is phpMyAdmin connecting from that web site or from another web site that is piping into the database? I only ask that because some hosts setup PMA on another server and connect 'remotely'.

I think if you through that entire error string into google you will get a bunch of results returned, many from the mysql web site forums. I forget exactly what the potential causes of that error are, but I think a lot of times it has something to do with a PID already in use or a db server that has not been started.

Have you searched DevNet for that error yet? I think there has been discussion on that topic before as well.