You can change your database’s password by navigating to your cPanel account and selecting MySQL® Databases section:
Once there, scroll down to the very bottom of the page until you see Current Users, then click on Change Password near your desired database user:
That’s it! Now you know how to change your database password 😉
If your MySQL® Databases section is empty, you need to create a MySQL database and assign user first.