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)
这是文件权限错误吗?MySQL服务器正在运行,但正在“无法连接”
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)
这是文件权限错误吗?MySQL服务器正在运行,但正在“无法连接”
添加此行是您的插座'的/ tmp/mysql.sock'?像这样运行查询:'bundle exec rake db:migrate --trace' – Prisoner
在/etc/my.cnf中检查绑定地址。 –
in my.cnf socket = /var/run/mysqld/mysqld.sock – ahmet