Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /Library/WebServer/scripts/mysql_connect2.php on line 13

Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /Library/WebServer/scripts/mysql_connect2.php on line 13
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)