# (ActiveRecord::AdapterNotSpecified) Error

**URL:** <https://www.ruby-forum.com/t/activerecord-adapternotspecified-error/61444>\
**Category:** Rails\
**Created:** [January 14, 2006, 6:23pm UTC](https://www.ruby-forum.com/t/activerecord-adapternotspecified-error/61444 "2006-01-14T18:23:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kavika\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/5f8ce5/32.png) [@Kavika\_V](https://www.ruby-forum.com/u/Kavika_V)\
**Post date:** [January 14, 2006, 6:23pm UTC](https://www.ruby-forum.com/t/activerecord-adapternotspecified-error/61444/1 "2006-01-14T18:23:50Z")

</div>

All,  
I am on Mac OS X 10.4, went through all the installation steps for mysql  
and ruby on rails. Now, I am getting this error when  
trying to start webrick or when trying to create the tables:

/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active\_record/  
connection\_adapters/abstract/connection\_specification.rb:73:in  
`establish\_connection’: development database is not  
configured (ActiveRecord::AdapterNotSpecified)

I am using the following database.yml file (passwords replaced with \*):

development:  
adapter: mysql  
host: localhost  
database: depot\_development  
username: root  
password: \*\*\*\*\*\*\*\*

test:  
adapter: mysql  
host: localhost  
database: depot\_test  
username: root  
password: \*\*\*\*

production:  
adapter: mysql  
host: localhost  
database: depot\_production  
username: root  
password: \*\*\*\*\*

Please help!!!

Thanks

---

<div class="post-metadata">

**Author:** ![Kavika\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/5f8ce5/32.png) [@Kavika\_V](https://www.ruby-forum.com/u/Kavika_V)\
**Post date:** [January 16, 2006, 12:03am UTC](https://www.ruby-forum.com/t/activerecord-adapternotspecified-error/61444/2 "2006-01-16T00:03:09Z")

</div>

On 1/14/06, Kavika V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ```
> adapter: mysql
> password: *****
> 
> ```
> 
> Please help!!!

Double-check your database.yml file against the example one.  
Whitespace is significant in YAML files, so make sure you don’t have  
any trailing spaces, or mixtures of tab characters and spaces, etc,  
etc. Your text editor may be doing some strange replacements on your  
behalf.
