Knowledge Base Article

My application cannot connect to my database.

If your application cannot connect to the database you should make sure that:

  • Your application is using the correct MySQL hostname: localhost
  • Your application is using the correct MySQL database / username / password. You can follow this tutorial for detailed instructions how to create them. You can also check cPanel's video tutorial for additional information.
  • Don't forget to specify your MySQL username and database with the prefix yourusername_ in front of its given name. For example, your cPanel username is siteground and you have named your database joomla. In this case you have to refer to your database as siteground_joomla;
  • MySQL works on the default TCP port 3306.


Rating

Please indicate if this article was helpful for you.

rating :  4.4 from 5
views :  8238
votes :  108

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!