Feeds:
Posts
Comments

Archive for May 18th, 2011

Hai, iam using Fedora 14.

Today i cloned a repo from github.

When i executed the application i faced  the following mysql error

Mysql2::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

/var/lib/mysql/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 🙂



Read Full Post »