• 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 Enable Remote MySQL Connection in WHM?

How to Enable Remote MySQL Connection in WHM?

Written by VernalWeb
July 28, 2022

By default, remote MySQL connections are disabled for all cPanel servers. To enable remote MySQL connection in WHM, please follow the steps.

Steps to enable Remote MySQL Connection

Step 1: Login to your WHM account.

Step 2: Navigate to the option Additional MySQL Access Hosts under SQL Services section.

Step 3: Enter IP or host name from where you want to connect MySQL server remotely in the text box.

Step 4: Click on Save button to make the changes.

Step 5: You can enable remote MySQL connection for all cPanel users by using the Click here option.

 

Whitelist remote host IP using SSH Access

Step 1: Login to your server using SSH.

Step 2: Whitelist the remote IP in the csf firewall by using the following command.

# csf -a <IP>

Step 3: Restart the csf to enable the changes.

# csf -r

 

Whitelist remote host IP using WHM

Step 1: Login to WHM.

Step 2: Navigate to the option ‘ConfigServer Security & Firewall’ under the section ‘Plugins’.

Step 3: To white list IP address in csf.allow file you must enter the IP that you want to white list in ‘Quick Allow’ section along with the option comment for allow.

Step 4: Click ‘Quick Allow’ button to save changes.

You can also configure Remote MySQL Connection from cPanel.

Now you can login to remote MySQL server from the allowed host in the WHM server.

Tags:MySQL DatabasesRemote MySQL ConnectionRemote Database

Was this helpful?

Yes  1 No
Related Articles
  • How to manage PostgreSQL databases and users in cPanel
  • How to Configure Remote MySQL Database Connection in cPanel
  • 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.