mysql database with hosting?

Discussion in 'MySQL' started by madkad, Jun 7, 2007.

  1. #1
    Hi

    I am not that clever with databases, I was wondering if I could use a database on another host and link my website from the host I have now to that database?

    if so can this make any problems?

    The host I use is OK and I have been with them along time but they only have 100mb databases, and i want a bigger one, if this can be done can any one recommend a cheap host that is trusting and reliable with a good size mysql database offer?
     
    madkad, Jun 7, 2007 IP
  2. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Yes, the function to connect to database in server side languages has a parameter for the host, so instead of "localhost" (database on same server), you would use the other website's URL/IP for the host.
     
    krt, Jun 7, 2007 IP
  3. madkad

    madkad Active Member

    Messages:
    1,686
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Thank you, I am looking for a low cost host now to give this a try and see if it works out better for me in the long run :)
     
    madkad, Jun 7, 2007 IP
  4. damonp

    damonp Peon

    Messages:
    97
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Many (most?) hosts don't allow access to their database servers from external machines. They only allow access from localhost (ie. the same machine the site is on) or from known hosts inside their network. This is a security precaution to prevent hackers from trying to illegally access a database server.

    Just be sure the chosen host allows external database access before you signup.
     
    damonp, Jun 8, 2007 IP
  5. kashif.nazar

    kashif.nazar Peon

    Messages:
    52
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The server , where you upload your website, if allow to make the connection with the other database server, then only you can use the data base on other servers, otherwise not.

    Yea try to find some others, like try this one, as i am also using this for my website.
    hostexcellence
    cheers
     
    kashif.nazar, Jun 9, 2007 IP
  6. jamesmoey

    jamesmoey Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    mySQL connection is not encrypted, make sure the provider or yourself can provide/setup SSL connection to the database.
     
    jamesmoey, Feb 27, 2008 IP