Search code examples
ruby-on-railsnetbeans-6.9

rake aborted error when migrating database


rake aborted! The driver encountered an error: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown database 'dbapp_development'

what should be done?

i've created the database using rake db:create


Solution

  • Although you created the db by doing rake db:create, the creation of database has failed silently.

    In this case you need to create the database manually just like I did going into mysqlyog or mysql workbench or as what you got. This is the known bug and is discussed in knowledge base.