• Services
    • Web Hosting
    • Reseller Hosting
    • VPS Hosting
    • Dedicated Hosting
  • Domains
  • Features
  • Company
    • About Us
    • Server Locations
    • Affiliates
    • Company Blog
  • Support
  • Client Login
  • Services
    • Web Hosting
    • Reseller Hosting
    • VPS Hosting
    • Dedicated Hosting
  • Domains
  • Features
  • Company
    • About Us
    • Server Locations
    • Affiliates
    • Company Blog
  • Support
  • Client Login
Home/Article/Web Hosting/Database/How to Configure Remote MySQL Database Connection in cPanel

How to Configure Remote MySQL Database Connection in cPanel

Written by VernalWeb
July 28, 2022

Before you can connect to your databases remotely, the IP working via remote connection has to be allowed on your account’s side. You can configure Remote MySQL Database Connection from cPanel control panel.

Steps to Configure Remote MySQL Connection:

Step 1: Login to your cPanel account.

Step 2: Navigate to the Database section and click on Remote MySQL®

Remote MySQL Database Connection

Step 3: In the Add Access Host box, enter your remote IP where you want to connect your database.

Access Host

Step 4: Comment section is optional. You can keep note on the connection type i.e. Home IP or something else.

Step 5: click on Add Host.

You will then see a message stating the host IP address was added to the access list. Now, since you have added the IP address to remote MySQL connections you will be able to connect to the databases. You can add as many IP addresses as you need.

 

Using a Wildcard to allow all IP’s

You may find you need to use a wildcard if your IP address changes regularly. You can add a wildcard by using the % symbol. This will add all IP addresses in that range.

For example, if you want to list all IP addresses in the range 129.23.85.1 to 129.23.85.255 you’d add the IP address 129.23.85.%.

 

How to connect remotely to MySQL Database using MySQL Workbench

MySQL Workbench is a visual tool for database architects and developers. MySQL Workbench provides data modeling, SQL development, and comprehensive database administration tools, and much more. MySQL Workbench is available on Windows, Linux, and Mac OS X. You can download it here.

Once MySQL Workbench is installed, please follow the steps below to connect to your database:

  1. Open MySQL Workbench.
  2. Click New Connection towards the bottom left of MySQL Workbench.
  3. In the “Set up a New Connection Dialogue” box, Type your Database connection credentials. The credentials will be like the following: Connection Name: You can name this whatever you like.
    Connection Method: Standard (TCP/IP).
    Hostname: You can use your domain or our your server’s IP address.
    Port: 3306
    Username: the user you created for the database.
    Password: the password for the database user that was created.
    Default Schema: This can be left blank.
  4. Click Test Connection.
  5. Type your password and click the “Save Password in Vault” checkbox. Click Ok.
  6. MySQL Workbench should say “Connection parameters are correct“. Click Ok.
  7. Click Ok again to accept the connection settings.
  8. Under the SQL Development section, you will see your connection listed in the Open Connection to Start Querying box. Click your newly created account.
  9. Now you will see the databases list in the area on the left.

That’s all! Now you know how to connect remotely to your MySQL database.

Tags:cPanelRemote MySQL ConnectionRemote DatabaseRemote MySQL

Was this helpful?

Yes  No
Related Articles
  • How to manage PostgreSQL databases and users in cPanel
  • How to Enable Remote MySQL Connection in WHM?
  • How to create a MySQL database in cPanel
  • How to export a database using phpMyAdmin
  • How to import a database using phpMyAdmin
  • How to optimize database via phpMyAdmin in cPanel?

Didn't find your answer? Submit Ticket

Latest Articles

  • How to show Hidden Files (.htaccess) in cPanel File Manager
  • Setup a Domain Redirection in cPanel
  • Create a MySQL Database and a User from cPanel
  • Remove page extensions using .htaccess
  • Cron Job Usage & Policy
  • © 2014 - 2025 VernalWeb. All rights reserved.