Go Back   HostGator Peer Support Forums > Public Forums > Pre-Sales Questions

Notices

Reply
 
Thread Tools
  #1  
Old 12-17-2008, 10:06 AM
ReltihVGT ReltihVGT is offline
Hatchling Croc
 
Join Date: Dec 2008
Posts: 2
Default [Q] Remote

Hi all,

I have a hosting plan here (a hatchling package). I've just created a database and I want to connect to that database from another host (the host that contains *.php files). But I do not know what the servername (the domain name of the database server) is. Can anyone here help me?

Thank you very much!

PS: I must post here because my accout has not been activated yet.

PHP Code:
//    ****** MASTER DATABASE SERVER NAME AND PORT ******
//    This is the hostname or IP address and port of the database server.
//    If you are unsure of what to put here, leave the default values.
$config['MasterServer']['servername'] = 'what is my servername?';
$config['MasterServer']['port'] = 3306;

//    ****** MASTER DATABASE USERNAME & PASSWORD ******
//    This is the username and password you use to access MySQL.
//    These must be obtained through your webhost.
$config['MasterServer']['username'] = 'xxxxxxxxxx';
$config['MasterServer']['password'] = 'yyyyyyyy'
Reply With Quote
  #2  
Old 12-17-2008, 10:17 AM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: [Q] Remote

Use your domain name or the server's IP.

Remember also that you need to put the IP you're connecting *from* into the Remote MySQL access list in cPanel.

And if it still doesn't work, contact support to make sure their firewall is open.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #3  
Old 12-17-2008, 10:34 AM
ReltihVGT ReltihVGT is offline
Hatchling Croc
 
Join Date: Dec 2008
Posts: 2
Default Re: [Q] Remote

Quote:
Use your domain name or the server's IP.

Remember also that you need to put the IP you're connecting *from* into the Remote MySQL access list in cPanel.
Thank you! Now I can connect to my database remotely.

PS: I submitted the thread accidently so its title was not correct.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Posting URL mooncrater Webhosting 3 03-25-2008 04:39 AM
Allow remote urls? tourguide Pre-Sales Questions 2 10-26-2007 02:52 PM
remote file reads hbshost Shared Hosting Support 4 03-16-2007 02:37 AM
remote mySQL, can connect but don't see DB bucket Shared Hosting Support 1 02-02-2007 08:09 PM

All times are GMT -5. The time now is 02:17 AM.