I’ve seen some confusion regarding the mysql2 gem in conjunction with Rails 3. The solution is really simple:

Gemfile

gem 'mysql2', '~> 0.3.6'

config/database.yml

environment:
  adapter: mysql2
  database: yourdb
  username: youruser
  password: yourpass
Advertisements