Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

crazycaddy

macrumors newbie
Original poster
Nov 19, 2006
22
0
I am having trouble 'linking' php and mysql, i installed mysql using an official installer and it is all working, but I don't know how to make it work with the php that comes preinstalled with osx I get this message when trying to use it in PHP.

Code:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) in /Library/WebServer/Documents/db.php on line 2
Error connecting to mysql
 
I wasn't aware that php came pre-installed with OS X.

To install it I used a preconfigured module called entropy.

Try that out. It configures everything for you and made installing PHP a snap.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.