Replacing the password on a regular basis is always recommended. If you have an intrusion on your WordPress page, it is important that you replace the database password since the hacker most likely has been able to view this password.
Replacing this password consists of two steps:
- Change the password for the database in the customer zone.
How to do this is described in this guide under the heading “Changing password for MySQL.” - Enter the new password in the WordPress configuration file.
Use the password you selected in Step 1 and type it into the configuration file. How you can do this is described here.