By default the database only accepts connections from the server itself. Remote MySQL allows a specific outside address to connect, which is useful for desktop tools and external applications.
ALLOWING AN ADDRESS
- Find the IP address that will connect. Visit whatismyip.com from that machine.
- In cPanel open Remote MySQL under Databases.
- Enter the IP address under "Add Access Host".
- Add a comment so you remember what it is for.
- Click Add Host.
CONNECTING
- Host: your domain name or the server hostname
- Port: 3306
- Username and password: the database user you created
- Database: the prefixed database name
Grant that user only the privileges it actually needs.
SECURITY CONSIDERATIONS
Never enter % as the access host. That allows the entire internet to attempt connections to your database. Home and office connections usually have dynamic IP addresses that change, so an entry added today may stop working tomorrow. Remove stale entries. Prefer an SSH tunnel over direct remote MySQL where your plan includes SSH access. Remove access hosts as soon as the work is finished.