Page 1 of 1

How to setup MySQL Connection from my LocalHost

Posted: Fri Jul 11, 2008 1:04 am
by Chandu
Hi,
I have a PHP Setup on my local IIS.
I have a MySQL DB installed on my friends laptop and both our laptops are connected in a network.

I need to setup the rqeuired infrastrutce on my laptop (i.e. at Web Server front).
I have gogled it but could not get a clear solution.
How do I setup a connector to connect to the MySQL DB which exists on my friends laptop, using the PHP code.
Please help me out.
Thanks,
Chandu

Re: How to setup MySQL Connection from my LocalHost

Posted: Fri Jul 11, 2008 2:36 am
by Benjamin
Try setting the hostname as his IP address and watch out that it is not blocked by firewalls.

Re: How to setup MySQL Connection from my LocalHost

Posted: Fri Jul 11, 2008 8:07 am
by Chandu
Hi,
Am getting the error below:

Fatal error: Call to undefined function mysql_connect()

This reflects the MySQL Driver is not setup on my laptop, but I did not find an easy way to set this up.
Need help in that lines.
-
Chandu