简体   繁体   中英

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]
socket=/var/lib/mysql/mysql.sock

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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