I'm trying run a rake db:create and it says that the database already exists (I never created this database before, this a new project). When I run rake db:migrate it says "Unknown database". I checked the mysql database (show databases;) and that database really does not exist.
Anyone knows what is that? I searched for solutions but without success.
When I run 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
When I run 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'
database.yml
development:
adapter: mysql2
encoding: utf8
database: adimax_development
pool: 5
username: root
password:
Error: Error image:
database.yml
file define as the host and port? That file will tell Rails how to connect to the MySql db server – Darkisarails dbconsole
? – Leo Correa