If you want to connect remotely to a database, you must enable support for remote connections.
Applications that connect remotely to databases use similar settings. You can find database's specific information using View your database details for cPanel hosting.
|Field||What to enter...|
|Host Name or Server||Your database's host name|
|Username||The database user's username|
|Password||The database user's password|
|Database||The name of the database|