hybris 使用MySQL数据库

来源:互联网 发布:淘宝客提现到哪里 编辑:程序博客网 时间:2024/05/16 06:46

参考:https://wiki.hybris.com/display/pqn/MySQL+database+configuration+on+Windows

参考:https://wiki.hybris.com/display/release5/MySQL


大致过程:

下载安装MySQL 5.5.30

安装的时候选择:

1.Transactional Database Only.

2.utf8编码


安装后

1.创建schema hybirs

2.设置 innodb_flush_lo_at_trx_commit 属性为0


修改hybris配置文件 hybris\config\local.properties

#mysqlDB
db.url=jdbc:mysql://localhost/hybris?useConfigs=maxPerformance&characterEncoding=utf8
db.driver=com.mysql.jdbc.Driver
db.username=root
db.password=root
db.tableprefix=
mysql.optional.tabledefs=CHARSET=utf8 COLLATE=utf8_bin
mysql.tabletype=InnoDB


下载MySQL jdbc驱动

Since hybris Commerce Suite version 5.0.2, MySQL connector is not shipped with the hybris Commerce Suite . Please download the file and put it in the folder ${HYBRIS_BIN_DIR}/platform/lib/dbdriver


然后,要重新启动hybris服务器,访问 http://localhost:9001/ 重新初始化系统.


0 0
原创粉丝点击