Commands to Initialize Garoon

Use the command line to initialize the data and settings that you added and changed after Garoon started running.
You can install standard data during initialization.

For Windows

Initialize Garoon in a Windows environment.

Command
cd C:\inetpub\scripts\cbgrn\initialize
Initialize.bat (language) "(MySQL installation directory)"(password)
Parameters
Parameters Required item Description
language The input type of this argument is a string (one line).
Specify the language for which you want to display commands.
Example:
  • ja
    Enter this if you want to specify Japanese.
  • en
    Enter this if you want to specify English.
  • zh
    Enter this if you want to specify Chinese.
MySQL installation directory The input type of this argument is a string (one line).
Specify a path for the directory where MySQL is installed.
password   The input type of this argument is a string (one line).
Specify the database administrator password.
If omitted, after you execute the command, a field for the database administrator password is displayed.

The language and time zone of the following locales are set automatically for the language that is displayed on the command screen:

Display Language Locale Language Time Zone
ja 日本語 Asia/Tokyo
en English Europe/London
zh 中文(简体 Asia/Shanghai
Execution Example

Assuming the example setting below, the command usage is as follows:

  • Language: ja
  • MySQL installed directory: C:\Program Files\Cybozu\mysql-5.0
  • Password: cybozu
cd C:\inetpub\scripts\cbgrn\initialize
initialize.bat ja "C:\Program Files\Cybozu\mysql-5.0" cybozu

For Linux

Initialize Garoon in a Linux environment.

Command
grn_initialize.csp
Parameters
Parameters Required item Description
db_admin_password The input type of this argument is a string (one line).
Specify the database administrator password.
db_user_password The input type of this argument is a string (one line).
Specify the database user password.
garoon_admin_password The input type of this argument is a string (one line).
Specify the Garoon administrator password.
default_timezone The input type of this argument is a string (one line).
Specify the default time zone as time zone code.
For details, see the time zone list.
default_locale The input type of this argument is a string (one line).
Specify the default language.
Example:
  • ja
    Enter this if you want to specify Japanese.
  • en
    Enter this if you want to specify English.
  • zh
    Enter this if you want to specify Chinese.
force_initialize   Specifies whether to display or hide the message confirming to initialize or not. Specify one of the following values:
  • yes
    The confirmation message does not appear. When you execute the command, initializing Garoon starts.
  • no
    A confirmation message appears. If you type "yes" and press the Enter key, initializing Garoon starts.
help   Displays help for this command.
Execution Example

Assuming the example setting below, the command usage is as follows:

  • Database administrator password: cybozu
  • Database user password: cybozu
  • Garoon administrator password: cybozu
  • Default time zone: Tokyo (Asia/Tokyo)
  • Default language: Japanese (ja)
./grn.cgi -C -q code/command/grn_initialize.csp db_admin_password=cybozu db_user_password=cybozu garoon_admin_password=cybozu default_timezone=Asia/Tokyo default_locale=ja