← ServerPilot Docs

How to Change the Database Password for WordPress

If you have migrated your WordPress app, you might need to change your MySQL database password by following these steps.

First, open your app in ServerPilot and click Databases.

Next, click the username for the database you wish to edit and enter your new password when the box appears.

Click Update.

Now, SFTP into your server and open wp-config.php in your app's public folder.


Find the lines below and change your old password to the new password you entered in ServerPilot.

Be sure to change only the text within the single quotes.

Save wp-config.php in your app's public folder.

Your database password should now be changed in WordPress.

Launch your first site in 5 minutes