JDBC的链接设置:
jdbc:mysql://hostname:port/database?useUnicode=true&characterEncoding=utf8
如果设置界面设置错误,之后可以在 /var/atlassian/application-data/confluence/confluence.cfg.xml
修改:
<property name="hibernate.connection.url">jdbc:mysql://hostname:port/database?useUnicode=true&characterEncoding=utf8</property>
confluence 默认安装路径:/opt/atlassian/confluence
confluence 默认数据路径:/var/atlassian/application-data/confluence
mysql 需要是 utf-8 的数据库:
CREATE DATABASE confluence CHARACTER SET utf8 COLLATE utf8_bin;
mysql 配置文件:
vim /etc/mysql/conf.d/mysql.cnf
[mysql]
default-character-set=utf8