What does this error mean?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

What does this error mean?

Post 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
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
Post Reply