When I try a rake db:migrate, that fails:

WARNING: This version of mysql2 (0.3.6) 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 rake aborted!

Am I doing something wrong, or does the bitnami rubystack come with incompatible versions of rails and mysql2?

Should I upgrade to rails 3.1 or downgrade mysql to 0.2.x?

Thanks,

Greg

asked 15 Aug '11, 17:25

Greg's gravatar image

Greg
16779
accept rate: 0%


BitNami RubyStackDev includes rails 3.0 and mysql gem 2.8.1 which are compatible. It doesn't include mysql2 gem.

In this question you created a new project using mysql2 in the Gemfile and with bundle install the mysql2(0.3.6) gem was installed. If you execute 'gem list' you will see the both mysql and mysql2 gems installed.

Currently Rails 3.1 is not the final stable version (the available version is a release candidate). If you want to use mysql2 gem with Rails 3.0 you can use the following in the Gemfile of your project:

gem 'mysql2', '< 0.3.0'

With 'bundle install' you will get mysql2 0.2.11 (currently the latest 0.2.x version) installed.

link

answered 16 Aug '11, 04:25

kaysa's gravatar image

kaysa ♦♦
3.0k51024
accept rate: 22%

Thanks very much for the help and the clarification! I am now running happily. I really appreciate your help.

Greg

(17 Aug '11, 01:04) Greg
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×31
×2

Asked: 15 Aug '11, 17:25

Seen: 851 times

Last updated: 04 Oct '11, 04:12

powered by BitNami OSQA