hi,
Actually while installing mysql 5.0 it asks for password. Google for
how to set the password in mysql and in your database.yml file,
maintain single space between every field e.g. adapter: mysql,
encoding: utf8 and so on..... This might solve your problem.

On Oct 12, 10: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
>
> In mysql i haven't set any password.(Though the default is root as whem
> mysql console i open it asks for pwd and on entering root it opens).
>
> Kindly suggest.
>
> Premanshu
>
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
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