Project

General

Profile

rake redmine:migrate_from_mantis RAILS_ENV="production" error 2

Added by Seongjin An over 10 years ago

1. if i wrote
adapter[mysql2]:mysql2

error message is

rake aborted!
validation failed: Login has already been taken

2. if i wrote
adapter[mysql2]:mysql

rake aborted!
uninitialized constant ActiveRecord::ConnectionAdapters::MysqlAdapter::Encoding


I'm using two mysql service. one is for mantis, another is for redmine(bitnami installed one more)
So, different mysql db is used.
Is it wrong?

If not wrong, why two error message happen?
And adapter[mysql2]:' ' what should i write? mysql? mysql2?

One more. if wrong, how i merge mysql db? bitnami install mysql forcibly and use new one.

please help me. I must migrate mantis to redmine.


Replies (2)

RE: rake redmine:migrate_from_mantis RAILS_ENV="production" error 2 - Added by Seongjin An over 10 years ago

I understand i should write 'mysql2'.
And i reinstall all, type 'mysql2'.
First try's error message is
----------------------------------------------------
Please enter settings for your Mantis database
adapter [mysql2]:
host [localhost]:
database [bugtracker]:
username [root]:
password []: root
encoding [UTF-8]:

Migrating users......
rake aborted!
Mysql2::Error: Unknown column 'mantis_project_category_table.project_id' in 'where clause': SELECT `mantis_project_category_table`.* FROM `mantis_project_category_table` WHERE `mantis_project_category_table`.`project_id` = 1
----------------------------------------------------------

and then from second try, error message is
-----------------------------------------------------
Please enter settings for your Mantis database
adapter [mysql2]:
host [localhost]:
database [bugtracker]:
username [root]:
password []: root
encoding [UTF-8]:

rake aborted!
Validation failed: Login has already been taken
----------------------------------------------------

What is the first error? and how can i logout for second error message?

I test two server. one is mantis 1.2.3->redmine2.3.3. two is mantis 1.2.15->redmine2.3.3
Now, problem of two test is same.

plz~ TT

RE: rake redmine:migrate_from_mantis RAILS_ENV="production" error 2 - Added by Seongjin An over 10 years ago

... Can i directly query to each DB for migration?
This work is one time so i'm thinking type all query.

    (1-2/2)