sakai 的安裝-mysql及中文的安裝

 
網上有很多Sakai 的安裝指南, 但是搜了很久, 中文網頁上並沒找到有關Mysql 配置及中文配置的說明,特別補充如下:
 
Sakai 基本安裝指南請參考: http://linux.chinaitlab.com/set/523349.html
 
Mysql及中文的配置:
修改 ./sakai/sakai.properties 文件如下:
# sakai.properties - the demo edition
# set the shared datasource URL to use a file based HSQLDB
#[email protected]=jdbc:hsqldb:${sakai.home}/db/sakai.db
###################################################################################################
#
# examples of other driver class name values - HSQLDB is the default
#[email protected]=org.hsqldb.jdbcDriver
[email protected]=com.mysql.jdbc.Driver
#[email protected]=oracle.jdbc.driver.OracleDriver
[email protected]=root
[email protected]=password
#
###################################################################################################
#
# examples of other datasource URLs for other technologies: HSQLDB in-memory is the default, and above see how to put this in a file
#[email protected]=jdbc:hsqldb:.
[email protected]=jdbc:mysql://localhost:3306/sakai?useUnicode=true&characterEncoding=UTF-8
#[email protected]=jdbc:oracle:thin:@monster.oracle.org:1521:db
#
###################################################################################################
#
# example vendor settings - must match your hibernate dialect set in the "placeholder.properties" file - "hsqldb" is the default
#[email protected]=hsqldb
[email protected]=mysql
#[email protected]=oracle
#
###################################################################################################
#
# set the validation query - the default is for hsqldb "select 1 from SYSTEM_USERS"
# for MySQL and Oracle, change it to this:
[email protected]=select 1 from DUAL
#
# Note: This has been shown to cause performance problems in Oracle - to leave it unset, set it to:
#[email protected]=
#
###################################################################################################
#
# set the default transaction isolation level - Up to and including 1.7.1, HSQLDB supports only "TRANSACTION_READ_UNCOMMITTED" - this is the default
# MySQL and Oracle should be set to TRANSACTION_READ_COMMITTED.
#[email protected]=TRANSACTION_READ_UNCOMMITTED
[email protected]=TRANSACTION_READ_COMMITTED
#
# Note: TRANSACTION_READ_COMMITTED is the default for Oracle, and performance problems have been seen when attempting to set this default.
# To leave it unset, set it to:
#[email protected]=
#
###################################################################################################
#
# Examples of interesting values to set.  This is not an inclusive list, since every property can be overridden in the property files
#
# set the default skin
#skin.default=default
#
# set the path to the skin repository
#skin.repo=/library/skin
#
# maximum allowed user file upload - in megabytes.  Default is 1 (megabyte).
#content.upload.max=20
#
###################################################################################################
#
# set the hibernate dialect (for shared datasource), HSQLDB by default, mySql and Oracle examples
#hibernate.dialect=org.hibernate.dialect.HSQLDialect
hibernate.dialect=org.hibernate.dialect.MySQLDialect
#hibernate.dialect=org.hibernate.dialect.Oracle9Dialect
#
###################################################################################################
#
# set the auto.ddl - default value is "true"
#auto.ddl=true
#auto.ddl=false
#
###################################################################################################
# Supported language locales for user preferences
locales = en, ja_JP, ko_KR, nl_NL, zh_CN, es_ES, fr_CA, ca_ES
 
修改./bin/catalina.sh 如下:
# Set juli LogManager if it is present
if [ -r "$CATALINA_HOME"/bin/tomcat-juli.jar ]; then
  JAVA_OPTS="$JAVA_OPTS -Duser.language=zh -Duser.region=CN"
  JAVA_OPTS="$JAVA_OPTS "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" "-Djava.util.logging.config.file="$CATALINA_BASE/conf/logging.properties"
fi
 
拷貝Mysql 驅動程序mysql-connector-java-3.1.12.jar
到 ./common/lib

啓動sakai, mysql 中的數據,程序會自動生成, 直接就可以使用了!
 
Good luck!
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章