| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Aug 2004
2 posts
Gave thanks: 0
Thanked 0 times
|
hostname?
I created a mySQL database using phpMyAdmin, and am trying to create a form for inputting data into the database using phpFormGenerator. I think I know what I'm doing, except when phpFormGenerator asks for the mySQL database access information. What hostname should I enter?
Forgive me if this is a stupid question. |
|
|
|
|
|
#3 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Oct 2003
Hosted on Dedicated
297 posts
Gave thanks: 0
Thanked 0 times
|
Ooooh, I was SO about to answer that one too.
No really, it's like the only question in weeks I've known the answer to. lol
__________________
Jme ++++++ Site: WalkerNetwork.com My Dumb Blog Server: Dedicated IM: Visit my profile for more info. Official Title: Queen of Run-On Sentences [ONE] - The Campaign to Make Poverty History |
|
|
|
|
|
#5 (permalink) |
|
Hostering?
Excelling Contributor
Joined in Jan 2004
Lives in New York
Hosted on D41
970 posts
Gave thanks: 0
Thanked 0 times
|
What is 127.0.0.1 ?
__________________
*-[www.oolio.com]-* {_DIME.41 Reseller_} Stay cool. ![]() >> Avatar used with permission from garyzullo.com <<
|
|
|
|
|
|
#7 (permalink) |
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,092 posts
Gave thanks: 48
Thanked 131 times
|
Yep, it's used to connect to your own computer. It's actually safer to use it rather than localhost. I *believe* localhost is in the host files, and if for some reason is removed it could cause it to not work. I'm really not positive on that one.. so don't quote me on it.
|
|
|
|
|
|
#8 (permalink) |
|
Surpass Fan
Super #1
Joined in Dec 2003
Lives in NJ
5,057 posts
Gave thanks: 0
Thanked 4 times
|
always use localhost for your connections to mySQL dbs at surpass.
avoid putting IP addresses in your code. your account may have to move someday. if you're running mysql /apache/ php on your home computer - you can still use localhost instead of an IP address. |
|
|
|
|
|
#9 (permalink) |
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,092 posts
Gave thanks: 48
Thanked 131 times
|
Yep, most certainly use localhost where you can. Was just meaning that when it doesn't work it's always safe to try the 127.0.0.1
I remember a client of mine before, for some reason their server could not use localhost and we had to change all mySQL connections to 127.0.0.1 for them to work. Didn't understand why, but I've always remembered to try that if I have problems with localhost. |
|
|
|