Return to "Miscellaneous"If your site shows “cannot connect to database” error messages, most likely your database server has stopped running, or your database connection information inside of your site programming (such as PHP scripts) is incorrect.
It is important that you check the database connection information inside of your script; most scripts will require the following information:
If you have all of the correct database connection information, try restarting the VDS; this will stop and restart the database server. The most common cause of the MySQL database server stopping is improper handling of connections to the database by PHP scripts; be sure that your PHP scripts are closing every MySQL connection that they open, or you run the risk of having a number of ‘stuck’ connections that eventually causes MySQL to stop.
Feel free to contact OpenSourceHost’s Customer Support or the developer of your scripts for more assistance preparing your database-driven site for production use.