1.下载mysql驱动
2.mysql数据库中创建hybris数据库
3.把mysql驱动放到文件夹里面(保证版本一致问题)
hybris\hybris\bin\platform\lib\dbdriver
4.修改配置文件(找到db.url这一块)
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.allow.fractional.seconds=true
5.在目录\hybris\bin\platform下运行cmd,执行setantenv.bat命令
setantenv.bat
6.再输入命令ant clean all,最后显示BUILD SUCCESS(时间可能比较久)
ant clean all
7.重新启动server
在hybris\bin\platform文件中找到setantenv.bat并执行
找到hybrisserver.bat并执行(可能时间比较长)
8.出现下面这个页面点击initialize(如果初始化系统是出现mysql却少数据库表,则不需要上面的mysql的配置)
用户名:admin 密码:nimda
initialize create system时间比较长
9.最下边出现continue,点击
10.访问http://localhost:9001/hmc/hybris
http://localhost:9001/hmc/hybris
11.访问http://localhost:9001/mcc
http://localhost:9001/mcc/