This article explains how to enable Remote MySQL access so that an application or another server can connect to a database hosted on your hosting, using WHM and the account's cPanel (accessed from WHM).
What is Remote MySQL access?
By default, MySQL usually accepts connections only from localhost (the same server). Remote access allows connecting from another IP (another server, your development PC, external service).
Security: Open remote access only to specific IPs you trust. Exposing MySQL to % (any IP) greatly increases the risk of attack.
Option 1: Remote MySQL in cPanel (most common)
From WHM, enter the cPanel of the affected account:
- WHM → List Accounts → cPanel link.
- cPanel → Databases → Remote MySQL (or Remote Database Access).
- In Host, enter the IP that will connect (e.g.
203.0.113.50) or an authorized hostname. - Click Add Host.
- The MySQL user must have permissions on the database (created in MySQL Databases).
Option 2: WHM — Additional MySQL Access Hosts
On some servers (often administrator permission):
- WHM → search for Additional MySQL Access Hosts or SQL Services → Additional MySQL Access Hosts.
- Add the allowed IP or range at the server level.
Reseller plan: If you do not see Additional MySQL Access Hosts in WHM, use only Remote MySQL in each account's cPanel.
Connection details for the remote application
Tell the developer or client:
- Host / Server: Server IP or
clientdomain.com(not alwayslocalhostfrom the outside). - Port:
3306(unless another is configured). - User and password: the MySQL ones created in cPanel.
- Database: full name (e.g.
user_wp).
Firewall and port 3306
Even if you authorize the IP in Remote MySQL, the server firewall must allow port 3306 from that IP. If the connection fails after configuring Remote MySQL, support may need to open the port — open a ticket with source and destination IP.
Check connection
From the authorized machine:
mysql -h SERVER_IP_OR_HOST -u MYSQL_USER -p
Or test from the app (Laravel, Node, etc.) with the same data.
Revoke access
- cPanel → Remote MySQL → delete the authorized host.
- Change the MySQL user password if there was unwanted access.
If Remote MySQL does not save changes or the remote connection still fails, open a ticket with source IP, MySQL user, and error message. You can also use the site's online chat.
