On Oct 12, 2:02 am, Premanshu Mishra <li...@ruby-forum.com> wrote:
> I m using ruby 1.8.7 on rails 2.3.5 with mysql 5.0 on windows.
> C:\Ruby187\rails\accounts>rake db:create
> (in C:/Ruby187/rails/accounts)
> rake aborted!
> syntax error on line 2, col 0: `encoding:utf8'
>
> The following is the yml file i'm using
>
> development:
> adapter:mysql
> encoding:utf8
> reconnect:false
> database:accounts_development
> pool:5
> username:
> password:
> host:localhost
>
> There are no spaces in the file. Only one after password
>

YAML is a very space sensitive format. You need to respect spaces in
nested keys and also between keys and their values.

If you respected the generated config/database.yml would notice it.

See this:

http://pastie.org/1215173

Notice the 2 leading spaces and the space between ":"

Also, you need an username.

Please, save the file in plain text, not UTF (the weird characters
you're getting in the output is due garbage added by your editor).
--
Luis Lavena

-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to