Drupal 4.6.4
Operating System: Linux
Apache Version: 1.3.34 (Unix)
PHP Version: 4.4.1
Mysql Version: 4.1.14-standard
Warning: I'm not a developer or webserver expert, just an administrator trying to get a Drupal site live and working, so I may need slightly more detailed help than some folks. I'm not dumb, however, so I'll do my best to understand if someone can point me in the right direction.
We've had our new Drupal site under development on a VPS for a couple of months now, slowly getting content transferred from the old one and modules installed, testing all along the way. A short while ago, we experienced a sudden MySQL error and subsequent server problems that caused our host to move our stuff to a new server, configured in the same way that the previous one had been. After tweaking, we thought things were okay, but then the same MySQL error started re-occuring:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /home/thetown/public_html/includes/database.mysql.inc on line 31
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
We got the host to check it with this result:
It looks as though the wrong mysql was installed with your
version of apache and php. Everything was fine until apache reset,
then it broke. This appears to have been a problem in our original