I set up my php/mysql server on apache according to Kevin Yanks guide on setting up php and mysql.

When trying to run the jokes.php which is in the 4 part I get the following error when trying to connect to the database and can't figure out what is going wrong.

Here is the error when I remove the @ sign from mysql_connect

Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /home/httpd/html/test/jokes.php on line 22

Help me please???