Database connection error (2): Could not connect to MySQL joomla 2.5 and 3.x

Version joomla 2.5.9
I have read through all the post relating to this problem, tried all solutions and can’t find answer to my problem with the error “Database connection error (2): Could not connect to MySQL”
I have uninstalled the site from the public directory and I had the Host default the account.
All fields match perfectly to my database details.
I have used different browsers, even different computers to install all to no avail.

I’ve spend a few days going over and over the details to make sure that all fields are entered correctly.
If anyone needs information about what settings I’ve used, please ask.
What have I done differently to other installs?


There are 4 settings which must be absolutely corrrect:

I HAVE run into one case in well over 1,000 manual installations of Joomla! (various versions) where having all 4 correct did NOT connect with the database.

That was when I used a password generated by the cpanel (on Rochen hosting) which befuddled Joomla somehow (if I remember correctly, the password had characters like “(” and “)” used somewhere within the string.)

The only other thing that is a small possibility is that some file or file(s) necessary for db connection have become corrupt on upload.

So if you are pursuaded that all 4 settings are absolutely correct, then change the password to something else, and try again with the revised settings.

If it still does not connect, reinstall the files from start to finish.

Leave a comment