How to Use Remote MySQL in cPanel
Posted about 8 months ago 4.4kEnable Remote Database Access
Security note: Only allow trusted IPs.
Add Remote Host
cPanel → Databases → Remote MySQL → Enter IP address or hostname → Add Host.
Use Wildcard Carefully
% allows any IP – only for development or trusted networks.
Connection Details
Connection Information
Host: yourdomain.com or server IP
Port: 3306
User: database_user
Database: database_name
Security Best Practices Table
| Practice | Reason |
|---|---|
| Specific IP only | Prevent unauthorized access |
| Use strong DB password | Brute force protection |
| SSL connection | Encrypt data in transit |