MySQL Chinese garbled (2nd question)

Source: Internet
Author: User

Entityengine.xml Modify the red text place:

<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= "Seed"/>
<read-data reader-name= "Seed-initial"/>
<read-data reader-name= "Demo"/>
<read-data reader-name= "ext"/>
<inline-jdbc
Jdbc-driver= "Com.mysql.jdbc.Driver"
jdbc-uri= "Jdbc:mysql://127.0.0.1/ofbiz?autoreconnect=true&amp;useoldaliasmetadatabehavior=true&amp ; Useunicode=true&amp;characterencoding=utf-8 "
Jdbc-username= "Root"
Jdbc-password= "123456"
Isolation-level= "ReadCommitted"
Pool-minsize= "2"
Pool-maxsize= "250"
time-between-eviction-runs-millis= "600000"/><!--Please note that at least one person have experienced a problem with This value with MySQL
and had to set it to-1 in order to avoid this issue.
For more look at http://markmail.org/thread/5sivpykv7xkl66px and http://commons.apache.org/dbcp/configuration.html-->
<!--<jndi-jdbc jndi-server-name= "Localjndi" jndi-name= "Java:/mysqldatasource" isolation-level= "Serializable "/>--
</datasource>

MySQL Chinese garbled (2nd question)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.