Having problems connecting with php as localhost to mysql?
First of all check that you have mysql running by doin ps -ax | grep mysql.
Then check in /var/lib/mysql that mysql.sock exist, if it does then do
chmod a+x /var/lib/mysql. Now try again to connect with php as localhost.
There is 57 guides in the database.