首页 > 数据库技术 > 详细

Upgrade Redmine 2.4 to Redmine 3.2: Import database

时间:2016-02-27 22:07:26      阅读:360      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!