Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; sense has a deprecated constructor in /home/yn3ypwvo7dgh/public_html/wp-content/plugins/all-for-adsense/all-adsense.php on line 11
Solved - Error Establishing a Database Connection wordpress | UseTechInfo.com

Solved – Error Establishing a Database Connection wordpress


Error establishing a database connection.

This is the common issue for a WordPress site while porting from local to live or migrating from one host to other.

Causes:

  1.    Your login details for your database are wrong.
  2.    Corrupted Database

Solution:

Check Database name and user

Check Phpmyadmin whether the database imported correctly.

 

Check the wp-config.php, has the same database name and user, also check the password provided for user

If the above point doesn’t work, then create a new DB and import the existing database..

 


 

Add a Comment

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