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
hai am using fedora 15,am getting the same error when i try to trouble shoot it
i tried the steps that you had mentioned in your blog.could you pl help me S0S
This is really a server configuration problem, which can be solved by setting “socket=/var/lib/mysql/mysql.sock” in the global my.cnf file inside the [mysqld] section.