Hostrs

< All Topics
Print

Remote MySQL

Log in to your cPanel>> database >> Remote MySQL

How to configure remote MySQL access in cPanel

This article describes how to use cPanel to allow external hosts to access your MySQL databases. When remote host access is enabled, you can use remote client applications to connect to your databases directly.

Enabling direct remote access to your databases is a potential security risk. An alternative, more secure way to access your databases remotely is to tunnel MySQL connections over SSH. For information about how to set up an SSH tunnel for MySQL, please see this article.

Table of Contents

  • Adding host access
  • Accessing your database remotely
  • Removing host access

Adding host access

To add remote host access for MySQL, follow these steps:

  • Log in to cPanel.
  • Open the Remote MySQL tool:
    • If you are using the Jupiter theme, on the Tools page, in the Databases section, click Remote MySQL:

2 4

    • If you are using the Paper Lantern theme, in the DATABASES section of the cPanel home page, click Remote MySQL:22 1
  • Under Add Access Host, in the Hosttext box, type the domain name or IP address of the host that you want to add.
    • o To obtain your own IP address, use your web browser to visit http://ipfinder.us.
    • You can use the %wildcard to specify a block of addresses. For example, to allow all IP addresses that begin with 10.0.1, type 0.1.%.
  • In the Commenttext box, you can add an optional comment to describe the remote host.
  • Click Add Host.

Accessing your database remotely

After you enable host access, you can connect to your MySQL databases remotely by using a MySQL client application. For more information about how to use MySQL client applications, please see this article.

Removing host access

You can remove host access when you no longer want a host to be able to access your MySQL databases remotely.

To remove host access, follow these steps:

  • Log in to cPanel.
  • Open the Remote MySQL tool:
    • If you are using the Jupiter theme, on the Tools page, in the Databases section, click Remote MySQL:
    • If you are using the Paper Lanterntheme, in the DATABASES section of the cPanel home page, click Remote MySQL: