简体   繁体   English

Ruby on Rails-Rake db:schema:dump,找不到指定的路径

[英]Ruby on rails - rake db:schema:dump, cannot find the path specified

I'd like to dump schema of my MySql database but when i try to do it than i have error: 我想转储MySql数据库的架构,但是当我尝试执行它时,却出现错误:

C:\\Users\\p\\Sites\\simple_cms>rake db:schema:dump The system cannot find the path specified. C:\\ Users \\ p \\ Sites \\ simple_cms> rake db:schema:dump系统找不到指定的路径。

It's my very first time with Ruby/Ruby on rails and I perform everything according "Ruby on Rails 4 Essential Training". 这是我第一次使用Ruby / Ruby on Rails,并且根据“ Ruby on Rails 4基本培训”执行所有操作。 Now i don't have any idea where i can find any solution of this problem. 现在我不知道在哪里可以找到该问题的任何解决方案。

Here is my Gemfile.lock: 这是我的Gemfile.lock:

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

I can show you everything in this file if you want but its 170 lines so maybe it will be enough. 如果需要,我可以向您显示此文件中的所有内容,但可以显示170行,所以也许足够了。

Here is my database.yml: 这是我的database.yml:

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

Thanks for help! 感谢帮助!

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM