码迷,mamicode.com
首页 > 数据库 > 详细

Upgrade Redmine 2.4 to Redmine 3.2: Import database

时间:2016-02-27 22:10:20      阅读:428      评论:0      收藏:0      [点我收藏+]

标签:

After install redmine 3.2, you may import the data of old version redmine to redmine 3.2.

1) Create a new clean database

sudo mysql -u root -p
drop database redmine
CREATE DATABASE redmine character SET utf8;
CREATE user ‘redmine‘@‘localhost‘ IDENTIFIED BY ‘my_password‘;
GRANT ALL privileges ON redmine.* TO ‘redmine‘@‘localhost‘;

2) Import old redmine database to new redmine

/usr/bin/mysql -u root -p redmine < /redmine_db_dir/redmine_db_16_02_27.sql

3) Generate new secret and Update db and plugins

sudo su - redmine
cd redmine
rake generate_secret_token
rake db:migrate RAILS_ENV=production
rake redmine:plugins:migrate RAILS_ENV=production
rake tmp:cache:clear
rake tmp:sessions:clear
exit
 
 

Upgrade Redmine 2.4 to Redmine 3.2: Import database

标签:

原文地址:http://www.cnblogs.com/luckysimple/p/5223567.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!