Reputation: 5005
bundle exec rake db:migrate
(in /home/ahmet/x)
rake aborted!
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
(See full trace by running task with --trace)
Is this a file permission error?
Upvotes: 0
Views: 1835
Reputation: 1418
If there is not currently a section called [client], try to add this lines at the end
[client]
socket=/var/lib/mysql/mysql.sock
Upvotes: 1