我的硬盘最近崩溃了,所以我正在为它安装mysql,并且我的时间不好。使用brew安装mysql
可以说,我开始:
brew install mysql
我建议发出命令:
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
告诉它,当我登录到启动,并启动mysql的。
,如果我去到一个轨道项目,我做
rake db:create
我得到一个错误:
无法创建{ “适配器”=> “mysql2”, “编码” 数据库= >“utf8”,“reconnect”=> false,“database”=>“database_development”,“pool”=> 5,“username”=>“root @ localhost”,“password”=>“password” “=>”localhost“,”port“=> 3306},{:charset =>”utf8“,:collation =>”utf8_unicode_ci“}
我错过了一个让我的rails应用程序与mysql连接的步骤?
我有同样的问题。你解决了这个问题吗? –