Ofbiz:数据库配置
MySQL
MariaDB下测试未通过(ant load-demo出现一些错误) Percona测试通过:
<datasource name="localmysql"
helper-class="org.ofbiz.entity.datasource.GenericHelperDAO"
field-type-name="mysql"
check-on-start="true"
add-missing-on-start="true"
check-pks-on-start="false"
use-foreign-keys="true"
join-style="ansi-no-parenthesis"
alias-view-columns="false"
drop-fk-use-foreign-key-keyword="true"
table-type="InnoDB"
character-set="utf8"
collate="utf8_general_ci">
<read-data reader-name="tenant"/>
<read-data reader-name="seed"/>
<read-data reader-name="seed-initial"/>
<read-data reader-name="demo"/>
<read-data reader-name="ext"/>
<read-data reader-name="ext-test"/>
<read-data reader-name="ext-demo"/>
<inline-jdbc
jdbc-driver="com.mysql.jdbc.Driver"
jdbc-uri="jdbc:mysql://192.168.202.128:3306/ofbiz?autoReconnect=true"
jdbc-username="root"
jdbc-password="1234567890"
isolation-level="ReadCommitted"
pool-minsize="2"
pool-maxsize="250"
time-between-eviction-runs-millis="600000"/>
</datasource>
注意:apache-ofbiz 13.07需要JDK7,(目测JDK8下面有一个错误),Percona驱动用mysql-connector-java5,6系列需要jdk8
Percona不支持Windows,因此使用虚拟机玩了一玩~