title: Error on connecting MySQL with Ruby on Rails
body: <p>I have just setup the MySQL with Ruby on Rails. I have created a new rails project giving following command</p>
  
  <pre><code>rails new test1 –d mysql
  </code></pre>
  
  <p>The project got successfully created but I am getting error when I give below command</p>
  
  <pre><code>rake db:create
  </code></pre>
  
  <p>The error is</p>
  
  <pre><code>C:\Users\HP\test1&gt;rake db:create
  rake aborted!
  (&lt;unknown&gt;): did not find expected key while parsing a block mapping at line 11
  column 1
  
  Tasks: TOP =&gt; db:create =&gt; db:load_config
  (See full trace by running task with --trace)
  </code></pre>
  
  <p>Got below messages when I ran trace command</p>
  
  <pre><code>C:\Users\HP\test1&gt;rake db:create --trace
  ** Invoke db:create (first_time)
  ** Invoke db:load_config (first_time)
  ** Invoke rails_env (first_time)
  ** Execute rails_env
  ** Execute db:load_config
  rake aborted!
  (&lt;unknown&gt;): did not find expected key while parsing a block mapping at line 11
  column 1
  C:/Ruby200/lib/ruby/2.0.0/psych.rb:205:in `parse'
  C:/Ruby200/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'
  C:/Ruby200/lib/ruby/2.0.0/psych.rb:153:in `parse'
  C:/Ruby200/lib/ruby/2.0.0/psych.rb:129:in `load'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-3.1.1/lib/rails/application/configu
  ration.rb:106:in `database_configuration'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/activerecord-3.1.1/lib/active_record/railtie
  s/databases.rake:6:in `block (2 levels) in &lt;top (required)&gt;'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:236:in `block i
  n execute'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute
  '
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:175:in `block i
  n invoke_with_call_chain'
  C:/Ruby200/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_
  with_call_chain'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:197:in `block i
  n invoke_prerequisites'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:195:in `each'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:195:in `invoke_
  prerequisites'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:174:in `block i
  n invoke_with_call_chain'
  C:/Ruby200/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_
  with_call_chain'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
  
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:149:in `
  invoke_task'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:106:in `
  block (2 levels) in top_level'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:106:in `
  each'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:106:in `
  block in top_level'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:115:in `
  run_with_threads'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:100:in `
  top_level'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:78:in `b
  lock in run'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:165:in `
  standard_exception_handling'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:75:in `r
  un'
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.0/bin/rake:33:in `&lt;top (required)&gt;
  '
  C:/Ruby200/bin/rake:23:in `load'
  C:/Ruby200/bin/rake:23:in `&lt;main&gt;'
  Tasks: TOP =&gt; db:create =&gt; db:load_config
  </code></pre>
  
  <p>Not sure which file to look for error:</p>
  
  <pre><code>(&lt;unknown&gt;): did not find expected key while parsing a block mapping at line 11
      column 1
  </code></pre>
  
  <p>I am struggling for last few hours to resolve this but couldn't find a solution. Please advise. Thanks.</p>