RedMine 安装教程可能会出现的一些问题解决方案

在Windows7下安装RedMine时,根据官网HowTo Install Redmine in a sub-URI on Windows with Apache的教程进行,可能会遇到RUBY插件版本问题和数据库配置挑战。通过编辑C:webserverRedmineconfigdatabase.yml设置production环境的数据库连接,包括adapter: mysql,database: redmine,host: localhost,username和password,以及encoding: utf8。接着在命令窗口中执行相关命令以创建或更新数据库表格。

因为安装比较繁琐,特别RUBY中插件很多版本问题,首先官网寻求教程:http://www.redmine.org/projects/redmine/wiki/HowTos
我是在Windows7中安装HowTo Install Redmine in a sub-URI on Windows with Apache

按照文章中的提示来;

有可能我们用

gem install rake
的时候没有任何效果,那是因为我们的网络被墙了。翻开我前面写过的一篇文章有介绍怎样去解决。

在繁琐的安装过程中,也许会在这一步,Mysql创建数据库报错。至少我用那个教程里面的方法,
  1. "Open connection to Start Querying"
  2. In SQL Query window enter the following script: 
create database redmine character set utf8;
create user 'redmineUser'@'localhost' identified by 'myPassword';
grant all privileges on redmine.* to 'redmineUser'@'localhost';

执行这段时候确实报错了。

解决方案:
把mysql安装目录里面的bin添加到系统的环境变量;然后

mysql -u root -p
mysql> CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'newpassword';
mysql> CREATE DATABASE redmine_default CHARACTER SET = 'utf8';
mysql> GRANT ALL PRIVILEGES ON redmine_default.* TO 'redmine'@'localhost';

修改这个环境时候,记得password后面留一个空格;
  1. Edit C:\webserver\Redmine\config\database.yml file to configure your database settings for "production" environment. It should look like this:
    production:
      adapter: mysql
      database: redmine
      host: localhost
      username: redmineUser
      password: myPassword
      encoding: utf8
    

如果执行这里提示找不到rakefile,那么看清楚第一个,要进入项目目录里面哦!!
cd C:\webserver\Redmine
  1. Create (or update) Redmine database tables
    • in command window, execute:
      cd C:\webserver\Redmine
      set RAILS_ENV=production
      rake generate_session_store
      rake db:migrate
      



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值