I have just got my mac back from a repair centre (airport card) and the php scripts on my local copies of are no longer connecting with the mysql database, I get a 2002 error. For some reason my machine hadn't taken any updates so the repair centre forced the machine to take all of them (a lot apparently) and it would appear that one of them has messed things up. I can access the database via the terminal but the php scripts in my web pages would result in the 2002 error stating: ERROR 2002 (HY000): Cant connect to local MySQL server through socket /var/lib/mysql/mysql.sock . I've tried several of the "solutions" on the web but now rather than get an error connecting, there is no output from the PHP script in to the web page whatsoever. Any hints?