How to change database password in WordPress?

Login to cPanel -> File Manager -> public_html

Change the new password in cPanel > MySQL databases > at the bottom where "Users" are, there you can change the password.

Find the file wp-config.php right click and go to edit
in the code you should have:

// ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', 'cpanel_wrdp1'); /** MySQL database username */ define('DB_USER', 'cpanel_aca1337'); /** MySQL database password */ define('DB_PASSWORD', 'HERE GOES THE NEW ONE YOU CHANGED'); /** MySQL hostname */ define('DB_HOST', 'localhost');

after that just enter the new password in the line for DB_PASSWORD. Save and that's it.

Scroll to Top