rake db:create (Gives the error)

i tried to generate a database .The config/database.yml file hold following for the development environment

adapter: mysql

database: blogg

username: root

password: 12345

socket: /var/run/mysqld/mysqld.sock

rails -v=2.3.8

gem -v= 1.3.7

ruby -v=ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]

When i tried

cd blog

rake db:create

it gave me following error

(in /home/amrit/blog)

rake aborted!

syntax error on line 4, col 11: ` database: blogg’

(See full trace by running task with --trace)

Please help to resolve it.

Thanks

i tried to generate a database .The config/database.yml file hold following for the development environment adapter: mysql database: blogg username: root password: 12345 socket: /var/run/mysqld/mysqld.sock

Yaml is quite fussy about its indentation - make sure you're using spaces rather than tabs and everything is indented consistently

Fred

On Apr 12, 12:46 pm, amritpal pathak <amritpalpath...@gmail.com> wrote:> i tried to generate a database .The config/database.yml file hold following > for the development environment > adapter: mysql > database: blogg > username: root > password: 12345 > socket: /var/run/mysqld/mysqld.sock

Yaml is quite fussy about its indentation - make sure you're using spaces rather than tabs and everything is indented consistently Thank you very much.it helped

   why i didn't get the reply by the mail.i have joined this malilng list already?