Project

General

Profile

help: Could not find a valid gem 'activerecord-mysql-adapter'

Added by Mine Red almost 12 years ago

Hi,

now i study install the 2.02 version on windows7, when i run "rake db:migrate RAILS_ENV="production"", they will display an error information as follow, and i can't find the "activerecord-mysql-adapter" gem file on http://rubygems.org, please help, thanks!

error information:

C:\Users\user1\Desktop\redmine\redmine>rake db:migrate RAILS_ENV="production"

rake aborted!
Please install the mysql adapter: `gem install activerecord-mysql-adapter` (mysq
l is not part of the bundle. Add it to Gemfile.)

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

C:\Users\user1\Desktop\redmine\redmine>gem install activerecord-mysql-adapter

ERROR: Could not find a valid gem 'activerecord-mysql-adapter' (>= 0) in any re
pository
ERROR: Possible alternatives: activerecord-jdbcmysql-adapter, activerecord-jdbc
mssql-adapter, activerecord-fb-adapter, activerecord-odbc-adapter, activerecord-
jdbc-adapter


Replies (1)

RE: help: Could not find a valid gem 'activerecord-mysql-adapter' - Added by Daniel Lee almost 12 years ago

had the same problem. i had to do ...

bundle install --without development test

before I had specified sqlite in that list of "withouts", so once I did that command, and then tried the migrate it worked.

    (1-1/1)