Rails 执行 rake db:migrate 的时候会卡住

linjunhalida · December 06, 2011 · Last by linjunhalida replied at February 04, 2012 · 2990 hits

原先的代码是 rails 3.0.9 的,后来升级到 3.1, 现在执行 rake db:migrate 的时候,会卡住,只有用 Ctrl-C 的时候才能退出。不知道是什么问题. 请问大家是否有什么思路没有?或者能够看到更深的 log?

$ rake db:migrate --trace ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Invoke db:load_config (first_time) ** Invoke rails_env (first_time) ** Execute rails_env ** Execute db:load_config ** Execute db:migrate ** Invoke db:schema:dump (first_time) ** Invoke db:load_config ** Execute db:schema:dump

^C

项目具体在这里: https://github.com/halida/snake-challenge/tree/master/rubyweb

直接运行 rake db:schema:load

还是一样会卡住?

没有问题呀。。估计是你的数据库连接有问题?

那么连接到底是哪里可能有问题呢?以及是什么样的问题?没有思路?

You need to Sign in before reply, if you don't have an account, please Sign up first.