# Help : No database specified. Missing argument: database

**URL:** <https://www.ruby-forum.com/t/help-no-database-specified-missing-argument-database/56335>\
**Category:** Rails\
**Created:** [March 30, 2006, 8:56am UTC](https://www.ruby-forum.com/t/help-no-database-specified-missing-argument-database/56335 "2006-03-30T08:56:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![freaky\_fashion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c68b51/32.png) [@freaky\_fashion](https://www.ruby-forum.com/u/freaky_fashion)\
**Post date:** [March 30, 2006, 8:56am UTC](https://www.ruby-forum.com/t/help-no-database-specified-missing-argument-database/56335/1 "2006-03-30T08:56:16Z")

</div>

Hi,  
I’m new to Ruby programming. I’m wnt thru the example by curt in  
onlamp and was stuck up in the midst of configuration.

I’m getting the “No database specified. Missing argument: database.”  
error when i tried creating a table recipe in cookbook db .

My database.yml contains the following entries

Development:  
adapter:mysql  
host:127.0.0.1  
username:root  
password:  
database:cookbook

Could you pls help me out to over come this issue.

thnx  
joe

---

<div class="post-metadata">

**Author:** ![freaky\_fashion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c68b51/32.png) [@freaky\_fashion](https://www.ruby-forum.com/u/freaky_fashion)\
**Post date:** [March 30, 2006, 2:48pm UTC](https://www.ruby-forum.com/t/help-no-database-specified-missing-argument-database/56335/2 "2006-03-30T14:48:01Z")

</div>

On Wed, 2006-03-29 at 22:54 -0800, freaky fashion wrote:

> adapter:mysql  
> host:127.0.0.1  
> username:root  
> password:  
> database:cookbook
> 
> Could you pls help me out to over come this issue.

* * *

you need a space between the : and the name

database: cookbook  
username: root

etc.

Craig

---

<div class="post-metadata">

**Author:** ![freaky\_fashion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c68b51/32.png) [@freaky\_fashion](https://www.ruby-forum.com/u/freaky_fashion)\
**Post date:** [March 30, 2006, 11:42am UTC](https://www.ruby-forum.com/t/help-no-database-specified-missing-argument-database/56335/3 "2006-03-30T11:42:33Z")

</div>

freaky fashion wrote:

> Hi,  
> I’m new to Ruby programming. I’m wnt thru the example by curt in  
> onlamp and was stuck up in the midst of configuration.
> 
> I’m getting the “No database specified. Missing argument: database.”  
> error when i tried creating a table recipe in cookbook db .
> 
> My database.yml contains the following entries
> 
> Development:  
> adapter:mysql  
> host:127.0.0.1  
> username:root  
> password:  
> database:cookbook
> 
> Could you pls help me out to over come this issue.
> 
> thnx  
> joe

Hi

Change ur database.yml as

Development:  
adapter: mysql  
host: 127.0.0.1  
username: root  
password:  
database: cookbook

Regards…
