我是ruby中的新手,我正在尝试在现有MySQL数据库的基础上构建示例Web应用程序我使用本教程作为我的指南: https://hackhands.com/ruby-rails-tutorial-creating-rails-instance-existing-mysql-db/ 但是当我使用这个命令 rake db:schema:dump我收到了这个错误 我正在使用ruby 2.4和rails 5.2.0
rake aborted!
URI::InvalidURIError: bad URI(is not URI?): adapter:mysql2 database:hadeny pool:5 encoding:utf8 username:root password:6458921700 port:3306 host:localhost socket:C:/xampp/mysql/mysql.sock
Tasks: TOP => db:schema:dump => db:load_config
(See full trace by running task with --trace)
我的database.yml
development:
adapter:mysql2
database:hadeny
pool:5
encoding:utf8
username:root
password:my_pass
port:3306
host:localhost
socket:C:/xampp/mysql/mysql.sock