Godaddy.com DBHost Question

Discussion in 'Databases' started by MarcL, May 16, 2007.

  1. #1
    Hey I need a little help with a DB I have to set up.

    Alright with my old hosting :
    define('dbHOST', 'localhost');

    With my new host it doesnt work with localhost. My new host is windows godaddy.com. Does anyone know what to put in place of localhost, so it can connect to the db?

    Thanks
    Marc
     
    MarcL, May 16, 2007 IP
  2. Smaaz

    Smaaz Notable Member

    Messages:
    2,425
    Likes Received:
    160
    Best Answers:
    0
    Trophy Points:
    250
    #2
    I think they are using different db servers. You can find the db server name in the admin tool.
     
    Smaaz, May 17, 2007 IP
  3. reyotech

    reyotech Peon

    Messages:
    102
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm pretty sure they are different servers as well...
     
    reyotech, May 17, 2007 IP
  4. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #4
    Godaddy-linux uses different servers and "localhost" is replaced with "mysqlxx.secureserver.net", where the xx is the sever number.

    You can retrieve the correct info for your site by visiting the control panel and viewing the connection strings for the database in question.
     
    Colbyt, May 17, 2007 IP