因为安装比较繁琐,特别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创建数据库报错。至少我用那个教程里面的方法,
- "Open connection to Start Querying"
- 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后面留一个空格;
- 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
- 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
- in command window, execute:
在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。接着在命令窗口中执行相关命令以创建或更新数据库表格。

5626

被折叠的 条评论
为什么被折叠?



