Forum Moderators: coopster

Message Too Old, No Replies

connect to remote mysql server

         

phex

9:31 pm on Mar 7, 2009 (gmt 0)

10+ Year Member



Hi guys.

how do I connect to a remote mysql server on onther building, onother computer using php? you get it!

IanKelley

12:43 am on Mar 8, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



To connect to a remote MySQL server via the net use:

[code]mysql_connect('123.123.123.123',$user,$pass);[/quote]

Where 123.123.123.123 is the remote server's IP address or hostname.

In other words PHP handles the details for you, all you need to do is give it the location.