GoDaddy Hosting - Mysql Connection

Discussion in 'MySQL' started by rederick, Oct 23, 2006.

  1. #1
    Hi,

    I am trying to connect to a mysql database on one server from a website hosted on godaddy.

    Has anyone every had success connecting to a Mysql Database from a website hosted on godaddy and the database is not hosted on godaddy?

    I asked Godaddy support - they gave me this code

    curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
    curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
    curl_setopt ($ch, CURLOPT_PROXY, "http://64.202.165.130:3128");
    curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);

    :eek:

    So it looks like i have to connect to Mysql Through A Proxy? - not sure.


    Thank you
     
    rederick, Oct 23, 2006 IP
  2. Mystique

    Mystique Well-Known Member

    Messages:
    2,579
    Likes Received:
    94
    Best Answers:
    2
    Trophy Points:
    195
    #2
    Whatever hosting + MySQL = pain on the arse

    However the above means that they have a proxy setup, probably decreasing performance.

    Check this out

     
    Mystique, Oct 23, 2006 IP
  3. zodiac

    zodiac Peon

    Messages:
    2,661
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
    #3
    the server with the database,you need to add 'Access Hosts' in mysql and maybe a Whitelisted so it can get though the firewall.
     
    zodiac, Oct 24, 2006 IP
  4. wetlazer

    wetlazer Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I saw a video on Youtube and the guy suggested hosting + Mysql.
    How is this a p.i.t.a?

    Whatever hosting + MySQL = pain on the arse

    However the above means that they have a proxy setup, probably decreasing performance.
     
    wetlazer, Sep 16, 2010 IP