What happened to me was I changed my website DNS to new host’s DNS and website stop working and redirects to wordpress installation page and wordpress log file showed above error.

WordPress forum has some methods to resolve this issue but it didn’t work for me or rather I don’t want to change codes and test again and again. Hence, I did try myself to resolve it.

Here is how i did it.

1. I downloaded lastest version of wordpress and overwrite wp-includes and wp-admin folders of current website

2. Go to phpMyadmin and export the database of website.

3. Then create new database and import database

To see How to create/export/import database/change new database, Click  here.

4. After everything is done, update wp-config.php with new database.

How to create database in cpanel

The procedure is the almost the same as moving site from one host to another. That should be able to resolve this error if you have tried different methods and still unable to resolve.

 

 

none