How to change database configuration in WordPress?

If you have recently changed a hosting package or transferred your hosting to us and want to use your existing WordPress site, configuration of the database must be done. Kindly follow the instructions below on how to change database configuration in WordPress.

Change database configuration in WordPress

Step 1. Take note of the new database details. (You may need to create a new one through the MySQL Database Wizard.)

Step 2.  Make sure that the WordPress SQL file is imported into the new database which can be done via PHPMyAdmin or SSH for server hosting plans.

Step 3. Edit the wp-config.php file. (You may do this via File Manager or FTP or if you are using VPS or Dedicated Server and have SSH access.)

Step 4. Modify the following lines:

  • Database name
  • Database username
  • Database user password
  • Hostname must be localhost

Step 5. Save the file and upload it into the WordPress directory.

If in case you will see an error message when you access your WordPress website, kindly double check the database configuration details and make sure they are all correct.

Do not hesitate to contact our support team if you have further questions.

Change database configuration in WordPress

(Visited 60 times, 1 visits today)