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.
You find this article useful? Click here to learn more about SiteGround web hosting experts and what else we can do for you!