How to safely change the existing MySQL database password?

Website URL

https://drcollection.store

Error Message

How to safely change the existing MySQL database password?

Other Information

Hello InfinityFree Support,

I run a WordPress/WooCommerce website at https://drcollection.store.

I cannot find an option in my free hosting account to change the password for the existing MySQL database user.

Could you please explain the supported way to change the existing database password without recreating the database? My website is currently working, and I want to avoid disrupting it.

Thank you.

Welcome to the InfinityFree community forum! Good to have you here.

  • Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
  • Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
  • AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
  • Solving an issue is a joint effort. Try the suggestions you get and report back what happened.

Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.

The database password is the same as your hosting account password, so you change it there. There’s no separate option in the control panel for it.

You can see and change it in the client area. Open your account from the accounts list, then look under MySQL Details.

Client area accounts list

This is what the “Common MySQL Connection Errors” article says about it:

To avoid disrupting your site, update the password in your WordPress wp-config.php (DB_PASSWORD) right after you change it. WordPress keeps using the old password until you do, and while the two don’t match the site will show a database connection error.

The phpMyAdmin article says changes can take at least 15 minutes to go through the system. Your browser may also keep an old phpMyAdmin login, so clearing cookies or using a private window helps if phpMyAdmin breaks afterwards.

I haven’t found anything that says whether the site stays connected during those minutes. If the site is busy, pick a quiet time to make the change.

Thanks for the information. However, the MySQL Details section in my InfinityFree account is empty. My existing WordPress database is accessible through phpMyAdmin, and my website is currently working.

Could you please clarify where I can change the hosting account password and confirm whether it is also used as the MySQL database password for my existing website?

I’m sorry for the delay.

I just checked it and I see your WordPress database in the list of your account, so it seems that the database list issue was already resolved.

To change the database password, just go to the MySQL Databases section and click the pencil button next to the password field. Whether that password is also used by your website is best verified by just checking the current credentials in the wp-config.php file of your website.