OFBiz在mysql数据源下,install时,若在新增GEO表(其他类似)报错:Illegal mix of collations (latin1_general_cs,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation ,
可能是数据库编码问题引起,请查看mysql.ini中的编码
default-character-set=utf8
character-set-server=utf8
然后再对比下OFBiz中entityengine.xml中有关
<datasource name="localmysqlolap"
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"/>
OFBiz安装MySQL编码问题
本文解决OFBiz在安装过程中遇到的MySQL GEO表创建错误,涉及数据库编码设置问题。通过调整mysql.ini文件中的字符集配置及检查OFBiz的entityengine.xml文件来确保数据库和应用程序的字符集一致。
229

被折叠的 条评论
为什么被折叠?



