Trying to install or remove a script getting error "Database connection failed : DBI connect failed : Access denied for user ..." Print

  • 1

After changing your password of your virtualmin panel access in our hosting portal you might get this error when trying to install or remove a script:

Database connection failed : DBI connect failed : Access denied for user ...

Issue is as follows: we have set virtualmin to not change the mysql database  password when user changes his virtualmin password, in order to not break existing joomla and other scripts already installed so databases have still initial password.

However Virtualmin automatically updates the database password stored to create new scripts. Thus the error above.

Please take note that when you change your virtualmin password, your database password will not change, but the stored password for installing scripts will change, and needs to be put back to the initial value.

To change the password used when installing or removing scripts, this is done in: Virtualmin -> select site -> Edit Databases -> Password tab -> paste initial password in the field and save.

Note: If you want to change your mysql database password, this is done in Webmin -> Servers -> Mysql server -> User permissions -> edit user, then Set password To, and save. IMPORTANT: this will not update existing script configuration files and make your existing sites stop working until you update your configuration files.


Was this answer helpful?

« Back