I was able able solve the problem ...
On Fri, Jul 17, 2009 at 5:38 PM,
nuam<sayakyi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Dear All,
>
> I am very new to RoR. I have got the following error after Chnaging
> mysql database.yml and restart the Server.
> -
> rails employee
>
> rails -d mysql employee
>
> and insert Username & Password in the database.yml
>
> and I restart the server.
>
> -
> => Booting Mongrel
> => Rails 2.3.2 application starting on http://0.0.0.0:3000
> /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on
line
> 24, col 2: ` host: localhost'' (ArgumentError)
> from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load''
> from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:
> 880:in `database_configuration''
> from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:
> 416:in `initialize_database''
> from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:
> 141:in `process''
> from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:
> 113:in `send''
> from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:
> 113:in `run''
> from /Users/khaipi/Documents/rails/employee/config/environment.rb:9
> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `gem_original_require''
> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `require''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
> active_support/dependencies.rb:156:in `require''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
> active_support/dependencies.rb:521:in `new_constants_in''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
> active_support/dependencies.rb:156:in `require''
> from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/
> server.rb:84
> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `gem_original_require''
> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `require''
> from script/server:3
>
> ---
> What did I do wrong here?
>
> Many thanks in advance,
>
> nuam.
>
> >
>