title: Rails: error: database configuration does not specify adapter
body: <p>The Rails application I'm developing is running fine on my local machine (MAC). When I upload it to the server (Centos 6.2 Linux, with Rails 3.2.3 and Passenger installed), and try to start the application (by entering the URL into my browser), I get the following error message:</p>
  
  <blockquote>
    <p>Ruby (Rack) application could not be started There appears to be a
    database problem.</p>
    
    <p>Your application's database configuration file might be written
    incorrectly. Please check it and fix any errors.</p>
    
    <p>The database server may not be running. Please check whether it's
    running, and start it if it isn't.</p>
    
    <p>Error message:
        database configuration does not specify adapter (ActiveRecord::AdapterNotSpecified) Exception class:
        ActiveRecord::AdapterNotSpecified</p>
  </blockquote>
  
  <p>Note that when I ran <code>rake db:create</code> and <code>rake db:migrate</code>, both of these tasks ran fine and the databases are created and migrated properly.</p>
  
  <p>Following is my database.yml file:</p>
  
  <pre><code>development:
    adapter: mysql2
    encoding: utf8
    reconnect: false
    database: acme_development
    pool: 5
    username: root
    password: ***********
    socket: /tmp/mysql.sock
  
  test:
    adapter: mysql2
    encoding: utf8
    reconnect: false
    database: acme_test
    pool: 5
    username: root
    password: *****************
    socket: /tmp/mysql.sock
  </code></pre>
  
  <p>Any ideas?</p>