Using a MySQL Database Remotely with cPanel

f you have external contributors to your website or your database resides on a different server, it makes sense to use remote database connections from your cPanel. Here’s how you can go about it:

  1. Pick up the IP address for the server from which you intend to establish the remote connection. http://whatismyipaddress.com/ should help you find this IP address.

  2. Login to your account on cPanel, look for ‘Databases’, and then ‘Remote MySQL’.

1025

  1. Clicking on it will bring you to a new page with a ‘Host’ field where you can enter the IP address (or host name) we identified in the beginning, and add it by selecting ‘Add Host’. If you want to grant database access to, say, all IP addresses starting with 167.45.0, you can use the ‘%’ character, by just entering 167.45.0.%.

841

  1. Popular software for configuring your remote MySQL include MySQL Workbench (https://www.mysql.com/products/workbench/) or Navicat (https://www.navicat.com/en/products/navicat-for-mysql). For this purpose, you’ll need your hostname, the name of your database, the credentials for the database, the port no. 3306, and if needed, the connection method should be chosen as TCP/IP.

If you’d like to remove database access that is no longer needed, just navigate back to the ‘Remote MySQL’ feature and find the host in question, then click ‘Delete’ next to its name, and confirm it with the ‘Remove Access Host’ button.

  • 0 A felhasználók hasznosnak találták ezt
Hasznosnak találta ezt a választ?

Kapcsolódó cikkek

Cpanel Hosting Overview

What is cPanel cPanel is a popular Linux hosting control panel that is used by many hosting...

SSL Certificates

How to Install AutoSSL certificate in cPanel Suggest Edits An SSL...

How to Remove SSL From cPanel

How to Uninstall SSL Suggest Edits All sites/domains hosted by Verpex...

How to Force SSL

You just installed SSL and you cannot find the secured padlock and HTTPS in front of your...

Managing Domains in cPanel

How to Manage domains in cPanel Suggest Edits There’s a newer section...