Moved WordPress to a new server. Facing Database connection error?
We were able to connect to the database server (which means your username and password is okay) but not able to select the wp database.
Are you sure it exists?…….
1) Please check your wp-config file for database username. Double check the DB name and user with prefix. 2) Copy the database password from wp-config and change the password of your DB.
3) Mostly the user is not added to the newly moved database. So Click on “Add user to Database” option in cpanel and GRANT all permissions. (simply check the boxes).
You are done!!
