What are "Cannot connect to database" errors?

This error will occur when any of the following exist:

  • The database username is incorrect
  • The database password is incorrect
  • The database name is incorrect
  • The database host is incorrect (use localhost)
  • The database server is unavialble
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How do I enable auto upgrade of Softaculous scripts?

Login to your cPanel account and head over to Softaculous 1. When doing a install, under...

What is your MySQL hostname?

The MySQL hostname is localhost. If you are trying to connect to MySQL from a remote location...

Why do I get "access denied" errors when trying to connect to MySQL?

If you cannot connect to the MySQL server, this might happen due to several reasons:...

Can I have custom error pages?

Yes, you can set up your own custom error pages by using the .htaccess file (it is located in...

Powered by WHMCompleteSolution