title: HOw to fix bundler issue: You have already activated mysql 2.7, but your Gemfile requires mysql 2.8.1. Consider using bundle exec
body: <p>After I deployed my rails 2.2.2 application to production I am getting this error:
  "You have already activated mysql 2.7, but your Gemfile requires mysql 2.8.1. Consider using bundle exec"</p>
  
  <p>Gemfile has the correct information. How do I fix this issue?</p>
  
  <p><strong>Update</strong>
  I would like to use <code>gem 'mysql', '2.8.1'</code> but somehow didn't work for me. Here is what I have in server gem list:</p>
  
  <pre><code>....
  libxml-ruby (1.1.3)
  memcache-client (1.6.3)
  mysql (2.7)
  net-scp (1.0.2)
  net-sftp (2.0.2)
  net-ssh (2.0.11)
  ....
  </code></pre>
  
  <p>Here is how my Gemfile look like:</p>
  
  <pre><code>require 'rubygems'
  source 'http://rubygems.org'
  source 'http://gemcutter.org'
  source 'http://gems.github.com'
  gem 'rails', '2.2.2'
  gem 'hpricot', '0.6.0'
  gem "composite_primary_keys", '2.2.0'
  gem 'javan-whenever', '0.3.7'
  gem 'mysql', '2.7' ** earlier I was trying with 2.8.1 then used 2.7 and it worked**
  gem 'activerecord-oracle_enhanced-adapter', '1.1.9'
  gem 'ruby-oci8', '1.0.3'
  gem 'crypto', '0.0.3'
  gem 'rack', '1.0.0'
  gem 'mechanize', '1.0.0'
  
  group :test do
    gem 'mocha', '0.9.5'
    gem 'rspec',             '1.3.1', :require =&gt; 'spec'
    gem 'rspec-rails',       '1.3.3'
  end
  
  group :cruise do
    gem 'metric_fu', '1.5.1'
  end
  </code></pre>