By default, MySQL databases in cPanel only accept local connections. To allow external applications (like desktop clients or remote servers) to connect, you must configure Remote MySQL Access.
Important Security Note
|
Step 1: Request Port Access
-
Open a support ticket in the Hosting Panel.
-
Ask Support to enable inbound access to MySQL port 3306 for your account.
-
Wait for confirmation that MySQL remote access is enabled.
Step 2: Add Remote Host in cPanel
-
Log in to cPanel.
-
On the Tools page → Databases section, click Remote Database Access.
-
If using cPanel v118 or earlier → click Remote MySQL.
-
-
Under Add Access Host:
-
Enter the domain name or IP address of the remote host.
-
To allow local loopback, enter
127.0.0.1(notlocalhost). -
(Optional) Add a comment to describe the host.
-
-
Click Add Host.
Step 3: Connect Remotely
-
Use a MySQL client (e.g., MySQL Workbench, phpMyAdmin, or command line).
-
Provide:
-
Hostname → your server’s domain/IP.
-
Port → 3306.
-
Username → MySQL user created in cPanel.
-
Password → MySQL user password.
-
Database name → the database you want to access.
-
Step 4: Remove Host Access (Optional)
-
Log in to cPanel → Remote Database Access.
-
Under Manage Access Hosts, locate the host.
-
Click Delete → Remove Access Host.
-
The host is removed and can no longer connect.