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.

Adding host access

  1. Log in to cPanel.
  2. In the DATABASES section of the cPanel home screen, click Remote MySQL:
  3. Under Add Access Host, in the Host text box, type the domain name or IP address of the host that you want to add.
    • 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 10.0.1.%.
  4. In the Comment text box, you can add an optional comment to describe the remote host.
  5. 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.

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:

  1. Log in to cPanel.
  2. In the DATABASES section of the cPanel home screen, click Remote MySQL:
  3. Under Manage Access Hosts, locate the host for which you want to remove access, and then click Delete.
  4. Click Remove Access Host. cPanel removes the host.
 
 
  • mysql, database, cpanel, remoteaccess
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to manage MySQL databases and users in cPanel

Managing database users To access MySQL databases, you must first create at least one user. The...

How to access phpMyAdmin and phpPgAdmin in cPanel

Accessing phpMyAdmin in cPanel Log in to cPanel. In the DATABASES section of the cPanel home...

How to use phpMyAdmin to copy a MySQL database

Copy MySQL database To copy a MySQL database using phpMyAdmin, follow these steps: Log in to...

How to change the MySQL collation settings in phpMyAdmin

About character sets and collation MySQL enables you to store and process data in a wide...

How to optimize and repair MySQL databases using phpMyAdmin

Optimizing MySQL databases Databases have the potential to grow very large, particularly on...

Powered by WHMCompleteSolution