My application cannot connect to my database

Created by Adam Coley, Modified on Mon, 17 Jul, 2017 at 11:24 AM by Adam Coley

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.
  • 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 lowaire and you have named your database joomla. In this case you have to refer to your database as lowaire_joomla;
  • MySQL works on the default TCP port 3306.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article