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 creating them.
- Don't forget to specify your MySQL username and database with the prefix yourusername_ in front of its given name. For example, your DirectAdmin username is lawshost and you have named your database forum. In this case you have to refer to your database as lawshost_forum;
- Your application is connecting to TCP port 3306.