简体   繁体   English

MySQL服务器正在运行,但显示“无法连接”

[英]MySQL server is running but getting “Can't Connect”

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? 这是文件权限错误吗?

If there is not currently a section called [client], try to add this lines at the end 如果当前没有名为[client]的部分,请尝试在最后添加这些行

[client]
socket=/var/lib/mysql/mysql.sock

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM