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.
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.
Save wp-config.php in your app's public folder.
Your database password should now be changed in WordPress.