I am currently setting up my first Rails environment.
When I try to run
rake db:create
the databases specified in database.yml are built, but not in the db/ folder as they are supposed to, but instead in /var/lib/mysql. What must I do to make it build the databases in their proper locations? I am running Arch Linux.
Only sqlite databases will be placed in the
db/folder. Other database solutions like Mysql or Postgresql will create the database according to their own internal locations, often set during installation.There is nothing wrong with where the database has been created and it shouldn’t be moved or placed in the
db/folder.