HostGator.com » Support Portal

Can a reseller set up a database on one cPanel, and allow the other cPanel's to connect to that database?

Yes, as long as the database is on the same server, then you only need to configure the other cPanels to connect locally to the database with a valid username and password. The host name would be 'localhost'.

If the database you want is on a different server, then you need to make a remote connection. All the configuration settings would be the same, except you would need to use the database server's IP address in place of 'lcoalhost'.

Read the detailed examples in the related article, "How to connect to the MySQL database".


cPanelcPanel is a popular web hosting control panel that helps you manage your hosting account and assists you in creating web sites, managing e-mail addresses, & installing applications to a server.

cPanel is available on all HostGator Linux hosting plans, including Shared Hosting, Reseller Hosting, VPS and Linux Dedicated Servers.

Your comments help us keep the knowledge base updated. This is not a medium for support. If you have questions or need help, please contact us via email, phone or live chat for fast assistance.

Post Comment