development:
  adapter: mysql2
  database: whitehall_development
  username: root
  password: <%= ENV["WHITEHALL_DB_PASSWORD"] %>

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test: &test
  adapter: mysql2
  database: whitehall_test
  username: root
  password: <%= ENV["WHITEHALL_DB_PASSWORD"] %>

staging:
  adapter: mysql2
  database: whitehall_staging

production:
  adapter: mysql2
  database: whitehall_production

cucumber:
  <<: *test
development:
  adapter: mysql2
  database: whitehall_development
  username: whitehall

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test: &test
  adapter: mysql2
  database: whitehall_test
  username: whitehall

staging:
  adapter: mysql2
  database: whitehall_staging

production:
  adapter: mysql2
  database: whitehall_production

cucumber:
  <<: *test
Use the whitehall mysql user for development and test environments.
Use the whitehall mysql user for development and test environments.

This is necessary as the user on the CI box has been changed to whitehall.  You can grant permissions to whitehall on dev machines using:

  grant all on `whitehall\_%`.* to whitehall@localhost identified by '';
