# Error with rake

**URL:** <https://www.ruby-forum.com/t/error-with-rake/131995>\
**Category:** Rails\
**Created:** [March 14, 2008, 10:32pm UTC](https://www.ruby-forum.com/t/error-with-rake/131995 "2008-03-14T22:32:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shenry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@shenry](https://www.ruby-forum.com/u/shenry)\
**Post date:** [March 14, 2008, 10:32pm UTC](https://www.ruby-forum.com/t/error-with-rake/131995/1 "2008-03-14T22:32:54Z")

</div>

I’ve been following the RoR tutorial at  
[http://wiki.rubyonrails.com/rails/pages/TutorialStepOne](http://wiki.rubyonrails.com/rails/pages/TutorialStepOne)  
…

When I enter the rake command (in step 5 of the tutorial) I get an  
error that database\_test does not exist… If I manually create an  
empty database with that name in mysql the rake command executes  
without errors.

Should rails be creating the database\_test at some point, perhaps at  
the same time it creates database\_development? (I might be missing  
something in the tutorial).

Thanks for any help

-SH

---

<div class="post-metadata">

**Author:** ![shenry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@shenry](https://www.ruby-forum.com/u/shenry)\
**Post date:** [March 15, 2008, 5:36pm UTC](https://www.ruby-forum.com/t/error-with-rake/131995/2 "2008-03-15T17:36:02Z")

</div>

> Should rails be creating the database\_test at some point, perhaps at  
> the same time it creates database\_development?

I’m not aware that rails actually creates the database for you… I  
always just create my \_development and \_test databases manually when  
starting a project, then use migrations & rake from there on

---

<div class="post-metadata">

**Author:** ![shenry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@shenry](https://www.ruby-forum.com/u/shenry)\
**Post date:** [March 15, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/error-with-rake/131995/3 "2008-03-15T17:37:48Z")

</div>

> I’m not aware that rails actually creates the database for you…

Guess I didn’t follow your link to “rake db:create”

---

<div class="post-metadata">

**Author:** ![shenry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@shenry](https://www.ruby-forum.com/u/shenry)\
**Post date:** [March 17, 2008, 8:47am UTC](https://www.ruby-forum.com/t/error-with-rake/131995/4 "2008-03-17T08:47:07Z")

</div>

I’ve found if I use rake db:create:all magically all databases are  
created… took me a while…
