Project

General

Profile

Redmine 1.4 Can't run rake db:migrate

Added by Emmanuel BOUGEROLLE over 12 years ago

Hi,

I'm trying to run the last redmine version but i can't run task db:migrate.

Ruby Version


ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]

Gems list :


*** LOCAL GEMS ***

actionmailer (2.3.14)
actionpack (2.3.14)
activerecord (2.3.14)
activeresource (2.3.14)
activesupport (2.3.14)
bundler (1.1.3)
coderay (1.0.6)
i18n (0.4.2)
mysql2 (0.2.18)
net-ldap (0.3.1)
rack (1.1.3)
rails (2.3.14)
rake (0.9.2.2, 0.9.2)
ruby-openid (2.1.8)
rubygems-bundler (0.2.8)
tzinfo (0.3.33)

Error message :


!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
rake aborted!
cannot load such file -- mysql

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


Replies (2)

RE: Redmine 1.4 Can't run rake db:migrate - Added by Ivan Cenov over 12 years ago

See here. You have to use mysql2 with Ruby 1.9.x. Copied from there:

Example for a MySQL database using ruby1.9 (adapter must be set to mysql2):
 production:
  adapter: mysql2
  database: redmine
  host: localhost
  username: redmine
  password: my_password
 

RE: Redmine 1.4 Can't run rake db:migrate - Added by Emmanuel BOUGEROLLE over 12 years ago

It's ok, sorry for this mistake....

    (1-2/2)