![]() |
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 |
Yes
|
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 :thumbsup |
Quote:
|
All times are GMT -7. The time now is 06:38 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123