<!-- MySQL configuration.
Uncomment if you want to use MySQL and comment out other database configurations.
Notes:
- if you want the main wiki database to be different than "xwiki"
you will also have to set the property xwiki.db in xwiki.cfg file
-->
<property>jdbc:mysql://localhost/xwiki</property>
<property>xwikiadmin</property>
<property>此处为密码</property>
<property>com.mysql.jdbc.Driver</property>
<property>true</property>
<property>UTF-8</property>
<property>org.hibernate.dialect.MySQL5InnoDBDialect</property>
<property>true</property>
<property>20</property>
<mapping resource="xwiki.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
<mapping resource="activitystream.hbm.xml"/>
<mapping resource="instance.hbm.xml"/>
<mapping resource="mailsender.hbm.xml"/>
新增的两行是:
<property>true</property>
<property>UTF-8</property>
试运行并初始化安装
1、运行tomact
2、在浏览器打开::8080/xwiki,出现初始化和安装设置界面