Redmine1.2.2 installation and configuration (see figure)

Source: Internet
Author: User
Tags i18n mysql command line redmine

Redmine1.2.2Installation and configuration

Refer:

Http://www.redmine.org/projects/redmine/wiki/RedmineInstall

Preparation:

Redmine Official Website: http://www.redmine.org/

RUBY: http://rubyforge.org/

  1. 1.Download rubyinstaller-1.8.7-p334.exe ,:

Http://files.rubyforge.vm.bytemark.co.uk/rubyinstaller/rubyinstaller-1.8.7-p334.exe

  1. 2.Download rubygems-1.6.2.zip ,:

Http://files.rubyforge.vm.bytemark.co.uk/rubygems/rubygems-1.6.2.zip

  1. 3.Download redmine-1.2.2.tar.gz ,:

Http://rubyforge.org/frs/download.php/75518/redmine-1.2.2.tar.gz

  1. 4.Download libmysql. dll ,:

Http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll

Start:

  1. 1.Install rubyinstaller-1.8.7-p334:

Next → I accept, next → select path: D: \ ruby187, add... path and add... Select both rb> install

  1. 2.Install rubygems:

Decompress rubygems-1.6.2.zip and decompress it to D: \ rubygems-1.6.2

Enter this directory in DOS, enter Ruby setup. RB, and press Enter.

  1. 3.Install rails2.3.11:

Input: Gem install rails-V = 2.3.11

  1. 4.Install rack1.1.1:

Input: Gem install rack-V = 1.1.1

  1. 5.Verify rails and rake versions:

Input: rails -- version

Input: rake -- version

The installed version of Rake will be 0.9.2.2, So delete rake-0.9.2.2 and then install rake-0.8.7.

  1. 6.Delete rake-0.9.2.2.

Input: Gem uninstall rake

Install rake-0.8.7

Input: Gem install rake-V = 0.8.7

  1. 7.Install gem 0.4.2 i18n

Input: Gem install-V = 0.4.2 i18n

  1. 8.Install the MySQL plug-in:

Input: Gem install MySQL

(No definition problem may occur and no impact is found)

  1. 9.Decompress redmine-1.2.2.tar.gz to directory: D: \ redmine-1.2.2
  2. 10.Start MySQL and create a database:

Enter MySQL command line mysqld-uroot-padmin and execute the following command:

Mysql> Create Database redmine Character Set utf8;

Mysql> create user 'redmine '@ 'localhost' identified by 'redmine ';

Mysql> grant all privileges on redmine. * To 'redmine '@ 'localhost ';

  1. 11.Copy config/database. yml. example in the redmine directory and rename it config/database. yml. Open Database. yml,

And modify the parameters required to connect to the database:

Production:

Adapter: MySQL

Database: redmine

HOST: localhost

Username: redmine

Password: redmine

Encoding: utf8

Note: The format must be correct. The colon is followed by a space. If your MySQL port is not 3306, add a line of Port: xxxx, for example, Port: 3307.

  1. 12.Open the console and run the following command to enter the redmine config directory:

Enter the command to generate the session store secret,

Input: rake generate_session_store

  1. 13.Copy libmysql. DLL to the bin directory of ruby187 and create the database structure:

Input: Set rails_env = Production

Input: rake DB: migrate

  1. 14.Insert default data:

Input: rake redmine: load_default_data

Next, a language selection will pop up: Enter ZH

  1. 15.Return to the redmine directory:

Input: Ruby script/Server webrick-e production. Press enter.

The following page is displayed:

The installation is successful.

  1. 16.Delete Anonymous Users:

  1. 17.Open the browser and enter http: // localhost: 3000/

You can see the redmine window.

Log in with account: Admin Password: Admin

  1. 18.After entering the system, change the language to Chinese and change it in myaccount and setting.

Installation Error: mysql: Error: Query: not connected when rake DB: migrate

This problem occurs because the libmysql. dll in mysql5.1.3 and later versions does not have a good connection with rails. You only need to replace an old version of libmysql. dll.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.