Where do I find host name for connecting with remote client

Eminds

Well-Known Member
Nov 10, 2016
319
32
28
India
cPanel Access Level
Root Administrator
if the database is hosted on the same server where the application is hosted use the hostname as localhost , if the database is hosted different server ask the server owner or provider for the hostname
 

rsims

Registered
Jun 15, 2017
2
0
1
Austin, Texas
cPanel Access Level
Root Administrator
I am the new web developer and using cPanel for the first time. I want to use a REMOTE CLIENT to access the MySql database hosted on the same server which our cPanel is configured to administrate.

Where, in cPanel, is the host name or IP for connecting to the MySql Database which cPanel is set up to configure.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello,

You can use any domain name that points to the cPanel server (e.g. yourdomain.tld). If you want to find out which IP address your domain name resolves to, then you can use a website such as IntoDNS.com, enter your domain name, and scroll to the bottom to see what "A" record is utilized.

Also, note that MySQL runs on port 3306 by default, and you need to authorize the remote host that's making the connection to MySQL using the following option in cPanel:

Remote MySQL - Documentation - cPanel Documentation

Thank you.