How-to-work-with-remote-mysql-in-cpanel: Difference between revisions

From LHYcloud Docs
Jump to navigation Jump to search
(Created page with " <big>'''Remote MySQL in cPanel''' is a feature that allows you to connect your website’s MySQL databases to applications or servers outside of your hosting account. By default, database access is limited to the local server for security, but with Remote MySQL you can whitelist an external IP address in cPanel so it can securely communicate with your databases. This is useful when you want to connect your site to third-party applications, external servers, or desktop t...")
 
(No difference)

Latest revision as of 09:09, 1 September 2025

Remote MySQL in cPanel is a feature that allows you to connect your website’s MySQL databases to applications or servers outside of your hosting account. By default, database access is limited to the local server for security, but with Remote MySQL you can whitelist an external IP address in cPanel so it can securely communicate with your databases. This is useful when you want to connect your site to third-party applications, external servers, or desktop tools like MySQL Workbench. It provides flexibility for developers while still maintaining controlled access through cPanel’s security settings.

Steps to connect MySQL Remotely in cPanel:

Step-1

Log in to cPanel using Username & Password.

Cp1.webp

Step-2

Navigate to Databases → Remote MySQL®.

Rm1.webp

Step-3

Provide the following necessary details.

Rm3.webp

Step-4

To save the configuration → Click the “Add Host” button.

Rm3.webp

CONNECT MYSQL REMOTELY

For the remote MySQL connections, we'll use HeidiSQL.

Step-5

Download the HeidiSQL application (https://www.heidisql.com/) and Open.

Rm4.webp

Step-6

Now click on “+ NEW” for Remote MySQL Connection.

Rm5.webp

Step-7

Next, select Network Type, Library and provide the required information,

Hostname/IP: Enter the MySQL server IP address or hostname.

User: Enter MySQL username.

Password: Enter a password of your MySQL username.

Port: Enter the Port of MySQL.

Database Name: Enter the MySQL Database name.

Rm6.webp

Step-8

Now click on Open to initiate a remote connection to the MySQL server.

Rm7.webp