Log in to the domain’s cPanel interface and find the section on the main page labeled Databases.
The following page will appear in your browser. Add a hostname or IP address that you want to grant remote MySQL access to (1) and then click the Save button (2).
If a host or IP address needs to be removed from this list you can click the red X next to the entry in the list.
Configuration Settings
Use the following configuration settings for connecting to your database:
Host name = (use the server IP address)
Database name = (cpanelUsername_databaseName)
Database username = (cpanelUsername_databaseUsername)
Database password = (the password you entered for that database user)
MySQL Connection Port = 3306
TCP or UDP, either is fine.