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 Link to comment https://forums.phpfreaks.com/topic/43197-solved-acess-mysql-database-on-different-servers-need-help/ 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. Link to comment https://forums.phpfreaks.com/topic/43197-solved-acess-mysql-database-on-different-servers-need-help/#findComment-209772 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 Link to comment https://forums.phpfreaks.com/topic/43197-solved-acess-mysql-database-on-different-servers-need-help/#findComment-209863 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.