Skip to content

How do I allow remote MySQL connections?

By default, MySQL connections are only permitted from the local server. To allow external hosts to connect to your MySQL databases, two steps are required:

  1. Firewall whitelist — Our support team must whitelist the connecting IP address(es) through the server firewall.
  2. cPanel Remote MySQL — You must also authorize the remote host through the Remote MySQL interface in cPanel.

Open a support ticket through the client area or email support@hawkhost.com. In your ticket, provide the IP address(es) or hostnames that need remote MySQL access.

  1. Log in to cPanel for your account.

  2. Type Remote MySQL into the search bar and click the Remote MySQL interface icon.

    Remote MySQL icon in cPanel

  3. In the Add Access Host section, enter the IP address or hostname you need to allow and click Add Host.

    Add Access Host form

  4. Once added, the IP will appear in the Manage Access Hosts section confirming the remote host has been authorized.

    Manage Access Hosts list