This guide explains how to permit a remote computer to connect to a database in your cPanel account. You may need this when an application and its database are hosted on different servers.
Add the permitted host
-
Log in to cPanel and open Databases > Remote Database Access. Older interfaces use Remote MySQL.
-
Enter the remote computer’s actual connection source IP address or permitted hostname in Host. If it uses network address translation, this may be its public outgoing address rather than a private address.
-
Add a comment if useful, then select Add Host.
-
Check that the correct entry appears in the access list.
Permit only the required source. A broad % wildcard can admit connections from unintended hosts. Adding an entry does not encrypt a database connection.
Check the connection
Use the database server’s address, database name and authorised database-user credentials in the remote client. The database service runs on the hosting server, not necessarily on the remote client.
The hosting server must accept the connection, its firewall must permit the intended source and database port, and the client’s network must permit outgoing traffic. The usual MySQL port is 3306, but confirm your provider’s settings and supported encrypted connection method. Adding a host does not override these requirements.
See server-level MySQL access hosts in WHM for the separate administrator setting.

