I'm really new to all of this and have been following through the tutorials this afternoon. All happened as advertised (very rare for a computing tutorial!!) until i had to stray from the instructions to get a up-to-date version of MySQL.
I had a similar problem to those posted below, with the following output from the php file:
Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
and various other problems. Finally i have managed to make it work.
Did this by simply creating the directory structure and moving the mysql.sock file from the /tmp directory into the newly created directory. The commands i used are:
sudo mkdir -p mysql
sudo mv mysql.sock /var/mysql/
And as if by magic, it worked - and the 4 hours spent on it seem a little less wasted!
Fantastic articles, the only useful tutorials on this subject that i've found!