I have no idea what this error is. Can someone please help me out and explain to me what it means.
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
Mor ethan likely the socket doesn't exist or you have a permissions issue. Can you type this at a terminal?
ls -l /var/lib/mysql/mysql.sock
What does that display?