MySQL server is running but getting "Can't Connect"
bundle exec rake db:migrate
(in /开发者_JAVA百科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?
If there is not currently a section called [client], try to add this lines at the end
[client]
socket=/var/lib/mysql/mysql.sock
精彩评论