View Full Version : Really easy question.
InNeedofHelp
03-27-2008, 12:26 AM
Hey guys...I'll probably embarrass myself by asking this...but as of right all of my mysql_connect functions connect to "localhost" because I have a server on my computer. When I upload my files to the internet what do i put in place of "localhost"? My thought was mysql_connect("www.mydomainname.com"), but I dont know for sure.
Anyways I'm just lookin for some clarification, thanks.
thetestingsite
03-27-2008, 12:34 AM
You will get all of your information from your hosting provider once set up. Usually it is just localhost with a different username/password combo from what you already have on your localhost (as to seperate different hosting accounts).
Hope this helps.
Also I don't think that you can access your domain host with any other domain. Translation:
You can't access your websites databases through your computers server.
thetestingsite
03-27-2008, 02:41 AM
Also I don't think that you can access your domain host with any other domain. Translation:
You can't access your websites databases through your computers server.
Not necessarily true. It all depends on the way that the database server (the one that you are trying to connect to) is set up. If it is set up to accept connections from anything other than localhost, this could work; however, many hosting companies restrict access to the db to only localhost (as it could be a security risk to let others connect to it).
Hope this helps.
Yea, well I don't suggest accessing other things anyways. I mean whats the point? There ya have it,
You can but sometimes it won't allow you[by: thetestingsite]
InNeedofHelp
03-27-2008, 06:45 PM
Thanks. :)
InNeedofHelp
03-27-2008, 11:02 PM
Scratch that..."localhost" didn't work. I'm using GoDaddy.com (which I dont recommend) if that helps. ANy other ideas?
thetestingsite
03-27-2008, 11:09 PM
godaddy uses a seperate database server from their main web hosting servers. I believe that it is something like mysql.secure-server.net, but you would want to contact their support first to make sure.
Hope this helps.
hschaen
05-18-2008, 04:08 AM
Hey everyone, I am new to the forum and have seen dozens of posts about this issue, but for one reason or another my problem seems not to have been answered. I have coldfusion enabled on my GoDaddy Linux virtual hosting account. I tried putting my mysql server info into dreamweaver to set up a new testing server with the "php mysql" setting checked and "ftp" access with my hosting server info "p50mysql***.secureserver.net" and url prefix: "http://www.***.com", but I get this error message: An ftp error occurred...
I have tried going to the application window and setting up a mysql connection, i enter the same info as above and I get this error message: 404 Error - page not found, need to install mmServerScript/
Please help!
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.