我正在尝试运行 rake db:create ,它说数据库已经存在(我以前从未创建过这个数据库,这是一个新项目)。当我运行 rake db:migrate 时,它显示“未知数据库”。我检查了mysql数据库(显示数据库;),该数据库确实不存在。
有人知道那是什么吗?我寻找解决方案但没有成功。
当我运行 rake db:create 时
rake db:create
Celluloid 0.17.3 is running in BACKPORTED mode. [ http://git.io/vJf3J ]
adimax_development already exists
adimax_test already exists
当我运行 rake db:migrate 时
rake db:migrate
Celluloid 0.17.3 is running in BACKPORTED mode. [ http://git.io/vJf3J ]
rake aborted!
Mysql2::Error: Unknown database 'adimax_development'
数据库.yml
development:
adapter: mysql2
encoding: utf8
database: adimax_development
pool: 5
username: root
password:
错误: Error image:
最佳答案
关于mysql - Rails - Mysql 数据库已存在但不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49441164/