title: Access denied for user 'root'@'localhost' (using password: NO) Rails 2
body: <p>I create a database in mysql
  i'm using mysql2 gem and Rails 2
  i've already saw some question here about this, but non of them works for me.</p>
  
  <p>I have my database.yml file like so:</p>
  
  <pre><code>development:
    adapter: mysql2
    database: db
    username: root
    password: 'root'
    host: localhost
  </code></pre>
  
  <p>i can login into mysql in the command line like this:</p>
  
  <pre><code>mysql -u root -p
  </code></pre>
  
  <p>and enter the same password: root and i have no error, but when i try to see a page after running scrpit/server the application always show the error <code>Access denied for user 'root'@'localhost' (using password: NO)</code></p>
  
  <p>Any idea what could be happening here please?
  Thanks</p>