How to setup MySQL Connection from my LocalHost

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Chandu
Forum Newbie
Posts: 2
Joined: Fri Jul 11, 2008 1:00 am

How to setup MySQL Connection from my LocalHost

Post 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
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: How to setup MySQL Connection from my LocalHost

Post by Benjamin »

Try setting the hostname as his IP address and watch out that it is not blocked by firewalls.
Chandu
Forum Newbie
Posts: 2
Joined: Fri Jul 11, 2008 1:00 am

Re: How to setup MySQL Connection from my LocalHost

Post 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
Post Reply