Page 1 of 1

php and mysql connection

Posted: Fri Jul 16, 2010 1:43 pm
by getmizanur
elloo,

i have two machine one with ubuntu linux and other windows which are connected by LAN. how can connect to mysql database on my linux machine from my windows machine using php.

many thanks in advance.

Re: php and mysql connection

Posted: Fri Jul 16, 2010 2:22 pm
by AbraCadaver
Assuming everything is setup properly and there are no firewall issues, etc. Just use the IP address of the Linux box as the host name when using mysql_connect().