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

Notices

Reply
 
Thread Tools
  #1  
Old 08-13-2006, 10:22 PM
NetBookProfit NetBookProfit is offline
Hatchling Croc
 
Join Date: Aug 2006
Posts: 2
Default SQL Database question.

Ok, I like to access my database with SQLFront. Its free, google it if you want to see it, and use it, and help me.

But I want to connect to my database... but im having trouble... I know the DB user name, the DB password, and DB name. But it dont know the server name. I tried my domain.com but it didnt work. I have an addon domain and i tried that too, but it didnt work..

Yes, I already added my IP/IS wild card using %. So its not that...

So what is the address to my db server?
Reply With Quote
  #2  
Old 08-14-2006, 01:08 AM
quietFinn's Avatar
quietFinn quietFinn is offline
Emperor Croc
 
Join Date: Feb 2005
Posts: 2,731
Default Re: SQL Database question.

Quote:
Originally Posted by NetBookProfit
So what is the address to my db server?
It's YourDomain.com
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #3  
Old 08-14-2006, 02:30 PM
kmaw's Avatar
kmaw kmaw is offline
Emperor Croc
 
Join Date: Mar 2005
Location: Ontario, Canada
Posts: 1,855
Default Re: SQL Database question.

localhost

or

127.0.0.0

?
Reply With Quote
  #4  
Old 08-14-2006, 02:42 PM
quietFinn's Avatar
quietFinn quietFinn is offline
Emperor Croc
 
Join Date: Feb 2005
Posts: 2,731
Default Re: SQL Database question.

Quote:
Originally Posted by kmaw
localhost

or

127.0.0.0

?
Only if the connection is local, like from your website to the database in the same server.
With sqlfront you connect from your PC to the database in the server.
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #5  
Old 08-15-2006, 09:21 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,163
Default Re: SQL Database question.

I use CocoaMySQL for this same thing. I connect to the domain I have the database on, in some cases my main domain, in some not. I made sure to add my exact IP address to the "allowed hosts," without using and wildcards.

-Matt
Reply With Quote
  #6  
Old 08-15-2006, 09:36 PM
Serra's Avatar
Serra Serra is offline
Veteran Croc
 
Join Date: Feb 2005
Location: Orange Park, FL
Posts: 5,067
Default Re: SQL Database question.

Be careful with wild cards, best to use three octets for the wild card. Like 192.168.0.%. Once you have it working, switch to either IP address of your local machine, or assign your machine a subdomain out of your domain.
__________________
Six stages of Dedi Ownership

Fashionable broken link
image included
Reply With Quote
  #7  
Old 08-16-2006, 03:00 AM
NetBookProfit NetBookProfit is offline
Hatchling Croc
 
Join Date: Aug 2006
Posts: 2
Default Re: SQL Database question.

thanks for your reply guys... i was trying to connect to the phpBB sql database that was created when i installed it with fantastico.

some reason i couldnt connect with the user name and password that was automaticaly made during phpBB install, so i just added another user onto the database, and was able to connect with that name and pass.. weird.

but yeah, like i originaly thought, it was my domain name.

thanks again.
Reply With Quote
  #8  
Old 08-16-2006, 05:46 AM
quietFinn's Avatar
quietFinn quietFinn is offline
Emperor Croc
 
Join Date: Feb 2005
Posts: 2,731
Default Re: SQL Database question.

Quote:
Originally Posted by NetBookProfit
thanks for your reply guys... i was trying to connect to the phpBB sql database that was created when i installed it with fantastico.

some reason i couldnt connect with the user name and password that was automaticaly made during phpBB install, so i just added another user onto the database, and was able to connect with that name and pass.. weird.
To see the database username/password you must look at the source code. What Fantastico shows (and mails if you like) are NOT the database username/password, they are the admin username/password.
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #9  
Old 08-16-2006, 11:49 AM
kmaw's Avatar
kmaw kmaw is offline
Emperor Croc
 
Join Date: Mar 2005
Location: Ontario, Canada
Posts: 1,855
Default Re: SQL Database question.

Quote:
Originally Posted by quietFinn
Only if the connection is local, like from your website to the database in the same server.
With sqlfront you connect from your PC to the database in the server.
Handy, didn't realize what exactly the program was for.

Thanks.
Reply With Quote
  #10  
Old 08-29-2006, 11:04 AM
DavidL DavidL is offline
Hatchling Croc
 
Join Date: Aug 2006
Posts: 5
Default Re: SQL Database question.

I can't seem to get this working. I put my IP address of my computer into the host list and then tried to connect with CocoaMySql using my domain name.

Actually, I've thrown a bunch of darts but nothing has stuck, any help would be appreciated. Thanks

David
Reply With Quote
  #11  
Old 08-29-2006, 04:05 PM
cjnoyes cjnoyes is offline
Swamp Croc
 
Join Date: Jan 2006
Posts: 250
Default Re: SQL Database question.

Quote:
Originally Posted by DavidL
I can't seem to get this working. I put my IP address of my computer into the host list and then tried to connect with CocoaMySql using my domain name.

Actually, I've thrown a bunch of darts but nothing has stuck, any help would be appreciated. Thanks

David
Is the Ip address public or a 192.168 ish local kind? it needs to be a public one
Reply With Quote
  #12  
Old 08-29-2006, 06:23 PM
Serra's Avatar
Serra Serra is offline
Veteran Croc
 
Join Date: Feb 2005
Location: Orange Park, FL
Posts: 5,067
Default Re: SQL Database question.

The IP will be the IP you use to access the site. The public one. (for external programs, for PHP web pages, it would be localhost)

On the MYSQL screen it shows the information you need to connect to your database. (minus the password.)
__________________
Six stages of Dedi Ownership

Fashionable broken link
image included
Reply With Quote
  #13  
Old 08-29-2006, 07:42 PM
DavidL DavidL is offline
Hatchling Croc
 
Join Date: Aug 2006
Posts: 5
Default Re: SQL Database question.

its the 192 ish number. I know that i need to have the user and password from the cPanel but still not clear what to put into the host list.
Reply With Quote
  #14  
Old 08-29-2006, 10:54 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,163
Default Re: SQL Database question.

No, that's your internal IP. Go to http://www.whatismyip.com. That's your external IP-- that's the IP that needs to go into the list.

-Matt
Reply With Quote
  #15  
Old 08-30-2006, 07:25 AM
DavidL DavidL is offline
Hatchling Croc
 
Join Date: Aug 2006
Posts: 5
Default Re: SQL Database question.

Thanks, I went to a what'smyIP site, not the one you gave me, and it gave me the 192 number, hmmmm. Now the last key is what do I put into the Host section of my SQL program? I've tried my site, the IP address I get with PHPmyAdmin, my mom's telephone number...
Reply With Quote
  #16  
Old 08-30-2006, 04:31 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,163
Default Re: SQL Database question.

That site gave you a 192 address? I didn't think that was possible... I know for a fact that 192 addresses are reserved for use in internal networks.

What about this site:

http://checkip.dyndns.org/

-Matt
Reply With Quote
  #17  
Old 08-30-2006, 04:46 PM
DavidL DavidL is offline
Hatchling Croc
 
Join Date: Aug 2006
Posts: 5
Default Re: SQL Database question.

I'm sorry about that, what I meant was that I used another site and it gave me that 192 number the site mentioned here gave me my correct IP address.
I've connected to many sites from CocoaMySql so this isn't new to me just this is the first time with HG.

Now what do I put into the program for Host?

And thanks to all that have helped, it is much appreciated.
Reply With Quote
  #18  
Old 08-31-2006, 09:17 AM
DavidL DavidL is offline
Hatchling Croc
 
Join Date: Aug 2006
Posts: 5
Default Re: SQL Database question.

Finally got all this to work, IT WAS my Mom's phone number
Actually it was my domain name that was needed, tried that before but it somehow clicked this time. I swear it wasn't my error either...I don't think...well maybe it could have been. Thanks again.
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

All times are GMT -6. The time now is 01:55 AM.

 
Forum SEO by Zoints