![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Registered User
Join Date: Sep 2003
Posts: 13
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jan 2002
Location: In the walls of your house.
Posts: 3,985
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Mar 2002
Location: NY
Posts: 4,994
|
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Registered User
Join Date: Sep 2003
Posts: 13
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |