jsia18 Posted March 18, 2007 Share Posted March 18, 2007 I'm building a database right now but I'm afraid that I will be needing two database servers to split up the task. How can I access the database in another server. Example, my php files are in server A and I want to access the database located in server B. As I have read, you just have to allow port 3306, but how is this done and how does the mysql_connect syntax will look like if connecting to another server. I also want to upload files from server A to server B using a php code, how ill i do this? Thanks Quote Link to comment Share on other sites More sharing options...
per1os Posted March 18, 2007 Share Posted March 18, 2007 For the mysql_connect instead of the localhost as server it would be your other server's ip with the other servers username/password. Quote Link to comment Share on other sites More sharing options...
jsia18 Posted March 18, 2007 Author Share Posted March 18, 2007 Thanks for the answer I've tried it and it worked Thanks a lot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.