Since yesterday all my DB run websites are down. The other sites which do not use a db are fine. Checked in phpmyadmin and databases are there but they do not connect to the sites. Runtime information says: This MySQL server has been running for 0 days, 13 hours, 8 minutes and 34 seconds. It started up on Sep 09, 2008 at 10:18 PM But these sites are running for months ! Was the DB server down and restarted and because of that it lost connection ? Tried support and they never replied. What are my options? Is there a query for reconnection? What am I to do? Thank you
This page contains some examples of how to return MySQL errors via PHP: http://php.net/mysql_error Could be that the hosting company has upgraded MySQL and you now need to use a different connection string/socket (depends on the hoster, whether they have multiple versions of MySQL running etc).