Ph: 786-539-6996

Error Establishing a Database Connection


1- Check if you receive the same error in www.yourwebsite/wp-admin. If this is the case, proceed to repair the database. Add the nex code in wp-config, at the end:

define('WP_ALLOW_REPAIR', true);

After that, enter in your website’s url:

And repair your database.

2- If your receive different messages in fron and back part, you should check the datanase connection, in wp-config too:

define(‘DB_NAME’, ‘database-name’);

define(‘DB_USER’, ‘database-username’);

define(‘DB_PASSWORD’, ‘database-password’);

define(‘DB_HOST’, ‘localhost’);

April 10th, 2016 | aesio

Leave a Reply

Your email address will not be published. Required fields are marked *

Time Programmer Corp Since 2014 ®