servers and mysql database question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aaajjj
    Registered User
    • Sep 2003
    • 13

    #1

    servers and mysql database question

    it is possible to access a database from a server without accessing any page on that server?

    for example let's say that i have 2 dedicated servers; on server1 i have database1; if i know the users and passswords for databasename1 it is posible make that: when a visitor visit the page site2.com hosted on server2 to introduce some info (for example the ip of the visitor) in the database1 from server1?

    hope i make me understand
  • NetRodent
    Confirmed User
    • Jan 2002
    • 3985

    #2
    Yes
    "Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
    --H.L. Mencken

    Comment

    • liquidmoe
      Confirmed User
      • Mar 2002
      • 4994

      #3
      Yes. Whenever you add a new user to mysql to access some database you can explicitly say user@ip address, usually you add the username as user@localhost, or it defaults to localhost if you dont include anything. Just add a user@server1_ip on server2 where you run mysql. Then server1 will be able to connect to the mysql database on server2 by specifying the ip address instead of localhost when establishing the connection in your CGI script and you can have full access to that database.

      If you need any help or have any questions hit me up on icq at 36837470.

      Take care

      Take Luck!

      Comment

      • aaajjj
        Registered User
        • Sep 2003
        • 13

        #4
        Originally posted by liquidmoe
        Yes. Whenever you add a new user to mysql to access some database you can explicitly say user@ip address, usually you add the username as user@localhost, or it defaults to localhost if you dont include anything. Just add a user@server1_ip on server2 where you run mysql. Then server1 will be able to connect to the mysql database on server2 by specifying the ip address instead of localhost when establishing the connection in your CGI script and you can have full access to that database.

        If you need any help or have any questions hit me up on icq at 36837470.

        Take care
        thank u very much.. if i will need help i will hit u up.. thanks again

        Comment

        Working...