I am trying to change the Joomla database password. I cannot figure it out. If I change the password in the database first, then Joomla is unable to use it, because it no longer has access to the database, but if I change it in Joomla first, then it cannot be stored because the password is wrong.

This seems like it should be an extremely basic thing. How do I do it?

1 Answer 1


The correct method is to update database password first, either via your hosting control panel or the command line.

Then manually update the password in configuration.php either through the File Manager in your hosting control panel, or update it locally and then upload via FTP.

  • I have to test this tomorrow, because of reasons, but if this is true, I would consider it to be a very significant bug. Luckily, I own my own, so it's not a big worry for me, but being able to change passwords without going into GNU+Linux is fairly important, I would think.
    – jo-erlend
    Commented Mar 22, 2023 at 23:01
  • 3
    Joomla has no authority to change database credentials and this is normally done through the hosting control panel. This is not a bug but a security feature! Commented Mar 23, 2023 at 0:27
  • Joomla has the authority ot change its own files? What is the purpose of the ability to change the password in the control panel if Joomla is not capable of doing so? If Joomla isn't capable, it should simply state how to do it.
    – jo-erlend
    Commented Mar 23, 2023 at 10:29
  • I agree the solution proposed by Snaffle is correct. MYSQL requires a clear password. The site owner is responsible to keep his file system secure.
    – user469
    Commented Mar 24, 2023 at 21:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.