Latest stable version apache-ofbiz-13.07.02
Latest Source ofbiz-release14.12
Ant load-demo loading Demo sample Data
ant load-seed only loads seed data
Ant Start startup server
http://http://localhost:8080/ecommerce/
https://localhost:8443/ordermgr/
Username/password:admin/ofbiz
Change the default database derby to MySQL
STEP1, build Database OFBiz, Ofbizolap, ofbiztenant in MySQL, create the database Username,password respectively ofbiz,ofbiz.
STEP2, copy the MySQL driver package to OFBIZ_HOME\FRAMEWORK\ENTITY\LIB\JDBC.
STEP3, change ofbiz_home\framework\entity\config under the Entityengine.xml,
First, find the following code in the file:
<delegator name= "Default" entity-model-reader= "main" entity-group-reader= "main" entity-eca-reader= "main" Distributed-cache-clear-enabled= "false" >
<group-map group-name= "org.ofbiz" datasource-name= "Localderby"/>
<group-map group-name= "Org.ofbiz.olap" datasource-name= "Localderbyolap"/>
<group-map group-name= "org.ofbiz.tenant" datasource-name= "Localderbytenant"/>
</delegator>
<delegator name= "Default-no-eca" entity-model-reader= "main" entity-group-reader= "main" entity-eca-reader= "main" Entity-eca-enabled= "false" distributed-cache-clear-enabled= "false" >
<group-map group-name= "org.ofbiz" datasource-name= "Localderby"/>
<group-map group-name= "Org.ofbiz.olap" datasource-name= "Localderbyolap"/>
<group-map group-name= "org.ofbiz.tenant" datasource-name= "Localderbytenant"/>
</delegator>
Put the above codeRepairSwitch
<delegator name= "Default" entity-model-reader= "main" entity-group-reader= "main" entity-eca-reader= "main" Distributed-cache-clear-enabled= "false" >
<group-map group-name= "org.ofbiz" datasource-name= "Localmysql"/>
<group-map group-name= "Org.ofbiz.olap" datasource-name= "Localmysqlolap"/>
<group-map group-name= "org.ofbiz.tenant" datasource-name= "Localmysqltenant"/>
</delegator>
<delegator name= "Default-no-eca" entity-model-reader= "main" entity-group-reader= "main" entity-eca-reader= "main" Entity-eca-enabled= "false" distributed-cache-clear-enabled= "false" >
<group-map group-name= "org.ofbiz" datasource-name= "Localmysql"/>
<group-map group-name= "Org.ofbiz.olap" datasource-name= "Localmysqlolap"/>
<group-map group-name= "org.ofbiz.tenant" datasource-name= "Localmysqltenant"/>
STEP4, DOS command line, to the Ofbiz_home folder run the following command:
Ant Load-demo
OFBiz Study Notes