My site is coming up blank or shows a database connection error message.

If you are using WordPress or any third party PHP script, majority of the time when you see a blank page, it means that there is misconfiguration in the script. This could be caused by a plugin that you may be using that is not functioning properly, script is poorly coded, faulty theme that you are using, exhausted PHP functions, or due to an upgrade of the PHP version on the server. Since the problem can be caused by any number of things, it may require a lot of troubleshooting. We recommend that you send an email to support@lunarpages.com(24 hours via our online helpdek) or contact our support team at 877-586-2772 Monday – Friday 7:00am to 5:00pm PST.

If your site is showing “Error Establishing a Database Connection” it can be caused by many different things. It could be that your database login credentials are wrong or have been changed, your database server is unresponsive, your database has been corrupted. In our experience, majority of the times this error happens because of a MySQL upgrade on the server that requires the database password to be reset.

You can repair, optimize, and change your database user password in your control panel under the MySQL databases section. If the repair did not fix the problem then you will need to locate the configuration file for your PHP script which is the most important file in your entire script. This is where you specify the details for the script to connect your database. If you changed your database user password, then you will need to change this file as well. First thing you should always check is if everything in your configuration file is the same. See WordPress configuration file as an example below:

1 define(‘DB_NAME’, ‘database-name’);
2 define(‘DB_USER’, ‘database-username’);
3 define(‘DB_PASSWORD’, ‘database-password’);
4 define(‘DB_HOST’, ‘localhost’);