You need spaces between your YAML keys and values. Example: development: adapter: mysql database: blogg username: root password: 12345 socket: /var/run/mysqld/mysqld.sock
On Thu, Apr 14, 2011 at 9:21 AM, amrit pal pathak <[email protected] > wrote: > > > On Apr 14, 2:46 am, Chris Kottom <[email protected]> wrote: > > Check your database.yml file. In many cases, the problem can be due to > > indentation, trailing whitespace, etc. > > The content of database.yml file are as > > # SQLite version 3.x > # gem install sqlite3-ruby (not necessary on OS X Leopard) > development: > adapter:mysql > database:blogg > username:root > password:12345 > socket:/var/run/mysqld/mysqld.sock > > # Warning: The database defined as "test" will be erased and > # re-generated from your development database when you run "rake". > # Do not set this db to the same as development or production. > test: > adapter: sqlite3 > database: db/test.sqlite3 > pool: 5 > timeout: 5000 > > production: > adapter: sqlite3 > database: db/production.sqlite3 > pool: 5 > timeout: 5000 > > in development environment ,seems no whitespaces.So what > may be behind the error? > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

