Mysql Host Name from third party

Discussion in 'Scripts, 3rd Party Apps, and Programming' started by citysc44, Oct 14, 2013.

  1. citysc44

    citysc44 New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    What would the hostname be if im trying to connect to my msql database from a third party application, so it cannot be localhost.
     
  2. descalzo

    descalzo Grim Squeaker Community Support

    Messages:
    9,375
    Likes Received:
    327
    Trophy Points:
    83
    On Free Hosting accouts, remote access to x10hosting's mySQL servers from outside servers is blocked with no exceptions.
     
  3. andylpsx

    andylpsx New Member

    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    3
    What if you have paid for your hosting though? I am trying to write a file that will pull information from a database that will hold scores, It's part of an interactive game that we built on the website using JS and Jquery. The main problem is I can not get any sort of PHP script to connect to the mySQL databases. Any help?
     
  4. essellar

    essellar Community Advocate Community Support

    Messages:
    3,295
    Likes Received:
    227
    Trophy Points:
    63
    Can you explain further? You haven't described anything that would require remote MySQL connections yet. The PHP scripts and the database are normally hosted on the "same" server (they may be physically separate machines, the "sameness" is often virtual). On the off chance that your application and your database are hosted on different servers, both servers would have to allow remote MySQL calls (your application server would have to allow outbound connections; your database server would have to allow inbound connections). You could then use either the IP address of the database server or its fully-qualified name when creating the connection (both would either be available on whatever control panel your db host uses or would be something you'd set up yourself).
     
  5. andylpsx

    andylpsx New Member

    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    3
    I was actually able to get something put together that worked. I did a little more digging around on the forum and found some helpful topics that solved my problem.
     

Share This Page