Home » Categories » Web Hosting » Databases

How do I update the database password within my configuration file?

This article will show you how to change the username and password within the configuration file on your hosting package.

If you’ve changed the username or password for any databases within your hosting package, you will need to update your configuration file to reflect these changes as well.

If you use WordPress as your Content Management System (CMS), simply follow the instructions below. If, however, you use any other platform, please consult your web developer.

Step 1 of 4
Start by accessing eXtend Control Panel for your hosting package.

Step 2 of 4
From there, click on the File Manager link and then enter the public_html folder.

Step 3 of 4
On the next screen, you’ll see all the files associated with your website.
Right click the file wp-config.php and then click Edit.

Step 4 of 4
You will now be shown all the usernames and passwords for your database. From here, you’ll need to change the text that appears within the quotation marks. For example, if you changed the password for your database to ‘coolexample123’, then the text should appear as follows:

/** Database password */
define( ‘DB_PASSWORD’, ‘coolexample123’ );


Once you’ve made the necessary changes, click Save & Close to confirm them.

1 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
Related Articles
What is MySQL and what does it do?
Added on Thu, Feb 26, 2015
How do I connect to my MySQL database using PHP?
Added on Thu, Feb 26, 2015
How do I connect to MySQL databases through SSH?
Added on Thu, Feb 26, 2015
How can I upload my MySQL database?
Added on Thu, Feb 26, 2015
How can I manage my MySQL database?
Added on Thu, Feb 26, 2015