Hai, iam using Fedora 14.
Today i cloned a repo from github.
When i executed the application i faced the following mysql error
Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)
Then after googling, i came to know that we need to change the path ( must give the correct path of mysql.sock ) of a socket attribute in config/database.yml
To know its path, i just gave the following command
[rajee@localhost ~]$ locate mysql.sock
Now the socket attribute path is changed as socket: /var/lib/mysql/mysql.sock
This path must also be changed in test, production in config/database.yml
Hope this helps for someone :)