【问题标题】:Ruby on rails - rake db:schema:dump, cannot find the path specifiedRuby on rails - rake db:schema:dump,找不到指定的路径
【发布时间】:2017-08-04 02:47:48
【问题描述】:

我想转储 MySql 数据库的架构,但是当我尝试这样做时却出现错误:

C:\Users\p\Sites\simple_cms>rake db:schema:dump 系统找不到指定的路径。

这是我第一次使用 Ruby/Ruby on rails,我按照“Ruby on Rails 4 Essential Training”执行所有操作。现在我不知道在哪里可以找到这个问题的任何解决方案。

这是我的 Gemfile.lock:

... rake (>= 0.8.7)
  thor (>= 0.18.1, < 2.0)
rake (12.0.0)...

如果你愿意,我可以向你展示这个文件中的所有内容,但它有 170 行,所以也许就足够了。

这是我的 database.yml:

adapter: mysql2
encoding: utf8
pool: 5
username: dev_user
password: password
host: localhost
socket: /tmp/mysql.sock

感谢您的帮助!

【问题讨论】:

  • 迁移或回滚等其他 rake 任务怎么样?
  • rake 的所有命令都不起作用。我在项目的 bin 文件夹以及 .../RailsInstaller\Ruby2.3.​​0\bin 中尝试过

标签: ruby-on-rails ruby database schema dump


【解决方案1】:

好的,我在重新安装“rake”后解决了问题。

【讨论】:

    猜你喜欢
    • 2018-07-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-10
    • 1970-01-01
    • 1970-01-01
    • 2013-05-07
    • 1970-01-01
    相关资源
    最近更新 更多