You can change the password for your database in the one.com control panel. Click PHP and database settings on the Advanced settings tile.
Change the password of the MariaDB database
- Click on the pencil icon.
- Type in your new password.
- Click the rotating arrows icon to save.
Note: Remember to update the login details for any CMS you have installed, like WordPress: Update WordPress database connection details