title: MySql Error 1045 after I did rake db:create
body: <p>I created a new Rails project, I used scaffold and then tried to:</p>
  
  <pre><code>rake db:create 
  </code></pre>
  
  <p>I didn't changed config/database.yml so password was empty (I always enter the password I use to log in to localhost/phpmyadmin but this time I forgot it).</p>
  
  <pre><code>development:
    adapter: mysql2
    encoding: utf8
    reconnect: false
    database: test_associations_development
    pool: 5
    username: root
    password: 
    socket: /tmp/mysql.sock
  </code></pre>
  
  <p>So, back to terminal I had the following message:</p>
  
  <pre><code>$ rake db:create
  Access denied for user 'root'@'localhost' (using password: NO). 
  Please provide the root password for your mysql installation
  </code></pre>
  
  <p><code>&gt;*******</code> (I entered my password here)</p>
  
  <pre><code>$ rake db:create rake aborted!
  (&lt;unknown&gt;): couldn't parse YAML at line 31 column 2
  
  Tasks: TOP =&gt; db:create =&gt; db:load_config
  (See full trace by running task with --trace)
  </code></pre>
  
  <p>After this, I cannot login to phpmyadmin and when I run my apps locally I'm getting this error: </p>
  
  <pre><code>Mysql2::Error
  
  Access denied for user 'root'@'localhost' (using password: YES)
  </code></pre>
  
  <p>I'm using OS X 10.7.2, Rails 3.2, Ruby 1.9.3.</p>
  
  <p>Any ideas?</p>