Results 1 to 9 of 9

Thread: Really easy question.

  1. #1
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Really easy question.

    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.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    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.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    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.
    Jeremy | jfein.net

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Quote Originally Posted by Nile View Post
    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.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  5. #5
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    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]
    Jeremy | jfein.net

  6. #6
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks.

  7. #7
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Scratch that..."localhost" didn't work. I'm using GoDaddy.com (which I dont recommend) if that helps. ANy other ideas?

  8. #8
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    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.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  9. #9
    Join Date
    May 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default *Newbie Alert* GoDaddy and MySQL issues

    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!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •