Enable 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

PracticeReason
Specific IP onlyPrevent unauthorized access
Use strong DB passwordBrute force protection
SSL connectionEncrypt data in transit