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