# Rake db:create error:"Unknown database"

**URL:** <https://www.ruby-forum.com/t/rake-db-create-error-unknown-database/141359>\
**Category:** Rails\
**Created:** [June 25, 2008, 12:12am UTC](https://www.ruby-forum.com/t/rake-db-create-error-unknown-database/141359 "2008-06-25T00:12:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppjunty](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/aeb1de/32.png) [@ppjunty](https://www.ruby-forum.com/u/ppjunty)\
**Post date:** [June 25, 2008, 12:12am UTC](https://www.ruby-forum.com/t/rake-db-create-error-unknown-database/141359/1 "2008-06-25T00:12:52Z")

</div>

rake db:create stopped working since i updated rails  
to 2.1.0. the problem is that this new version of  
rake is loading the files in the ‘config/initializers’ directory,  
and one of the files has database operations, so as the database  
is not created yet the ‘db:create’ task halts. i commented  
the db calls and the db was created normally.  
anyone knows how to avoid this loading? or why rake  
is now loading the application context?
