当我运行应用程序时,我会收到以下错误消息:
/Users/adam/.rvm/gems/ruby-1.9.3-p385/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `connect': Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (Mysql2::Error)
如果我尝试跑步
mysqladmin variables | grep socket
结果是:
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
我很确定我正在使用 Rails 3.2 和 MySQL,但现在没有。我在 Mac OS Lion 上运行,你能帮我看看我错过了什么吗?
谢谢