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