Nicholas wrote in post #994403:
> Nicholas writes:
>
>
> Please someone help with this issue? gem install
> activerecord-mysql2-adapter
> does not exist?  Please help fix the mysql and rails connection.

I just ran into this same error message and I figured out what was going
wrong. If you try and load the rails console (rails c) you will probably
see the following warnings.

WARNING: This version of mysql2 (0.3.2) doesn't ship with the
ActiveRecord adapter bundled anymore as it's now part of Rails 3.1
WARNING: Please use the 0.2.x releases if you plan on using it in Rails
<= 3.0.x

When I ran "bundle install" it must have updated my mysql2 gem, which is
no longer compatible with rails 3.0. Not good.

I changed my Bundle file so the mysql 2 line looks like this:
gem 'mysql2', "0.2.7" # v0.3 requires rails 3.

Then run 'bundle' and everything should be good again.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to