For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /cpanel/database_management/cpanel_accessing_my_mysql_database_remotely.md.

How to Access a MySQL Database Remotely in cPanel

You can allow remote access to a MySQL database using the Remote MySQL feature in cPanel. This allows an external server or application to connect to your MySQL database.

Warning

Only add trusted IP addresses that require access to your database.

Add a Remote Host

Log in to cPanel

Log in to your cPanel account.

Open Remote MySQL

In the Databases section, click Remote MySQL.

Remote MySQL in the Databases section

Enter the remote IP address

Enter the IP address of the remote server that needs to access your MySQL database. For example:

REMOTE.HOST.IP.HERE

Remote host IP address field

Add the host

Click Add Host. The specified IP address will now be allowed to connect to MySQL remotely.

Note

Make sure the remote application or server is configured with the correct MySQL hostname, database name, username, password, and port.