开发者

MySQL server is running but getting "Can't Connect"

开发者 https://www.devze.com 2023-03-30 18:39 出处:网络
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)
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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号