Fix joomla install error 'cannot connect to mysql database'

Fix joomla install error 'cannot connect to mysql database'

Joomla cannot connect to mysql

If you have this error "Joomla Database Connection Errors" then you need to check few things:

  • in your hosting panel like cPanel check is your database is configured
  • then check a database username and password
  • Also dont forget database user must be allowed to access the your database

Second thing check Joomla configuration.php file for:

  • $db: in configuration.php file must have the same database name  that is set on your cPanel MySQL account
  • $password: in configuration.php file must have the same password value that is set on your cPanel MySQL account
  • $host: "localhost" check that value and set it to localhost

If you have still problem, you can write us at This email address is being protected from spambots. You need JavaScript enabled to view it.

Joomla Templates
Popup now! Make a Difference!