当前位置:网站首页>本地部署Confluence遇到的问题:MySQL数据库编码、隔离级别、验证码不显示
本地部署Confluence遇到的问题:MySQL数据库编码、隔离级别、验证码不显示
2022-06-28 16:43:00 【Heartsuit】
背景
本地部署 Confluence 时,要求:
- 数据库编码为
utf8-bin。 - 要求隔离级别为
READ-COMMITTED。
此外,使用 Confluence 时还遇到了页面上验证码不显示的问题。

按要求进行数据库设置
官方下载 MySQL5.7 :https://downloads.mysql.com/archives/community/
- 先查看下当前的隔离级别:
查看系统隔离级别:select @@global.tx_isolation;
查看会话隔离级别(5.0以上版本):select @@tx_isolation;
查看会话隔离级别(8.0以上版本):select @@transaction_isolation;
-- 可以看到当前数据库的默认隔离级别为可重复读
select @@global.tx_isolation;
REPEATABLE-READ
接下来,按照 Confluence 要求,设置 MySQL 数据库的全局事务隔离级别为 READ-COMMITTED
set global transaction isolation level read committed;
- 设置会话隔离级别
set session transaction isolation level repeatable read; 设置会话隔离级别为可重复读
set session transaction isolation level read uncommitted; 设置会话隔离级别为读未提交
set session transaction isolation level read committed; 设置会话隔离级别为读已提交
- 再次查看下修改后的级别
select @@global.tx_isolation;
READ-COMMITTED
解决初始化数据库报错
You do not have the SUPER privilege and binary logging is enabled (you might want to use the less safe log_bin_trust_function_creators variable)
解决:设置 log_bin_trust_function_creators=1 。
set global log_bin_trust_function_creators=1;
show variables LIKE "%trust%"
以上设置方式是临时的,当数据库服务重启或者主机重启后配置就失效了。
可通过以下配置 my.ini 或者 my.cnf 使配置永久生效。
transaction-isolation=READ-COMMITTED
log_bin_trust_function_creators=1
处理验证码不显示的问题
当输错了几次之后就要输入验证码,可是 Confluence 的验证码出不来,不显示。
参考:https://www.cnblogs.com/wgy1/p/9796176.html
- 找
Confluence的服务名称(对后面修改编码格式有用):
控制面板 -》 管理工具 -》 服务 – Altassian Confluence -> 属性 -> 常规 -> 服务名称
- 修改文件编码格式:
cmd.exe进入Confluence/bin文件夹下 输入命令:tomcat9w //ES//Confluence**********
C:\Program Files\Atlassian\Confluence\bin>tomcat9w.exe //ES//Atlassian Confluence Confluence110522105657
C:\Program Files\Atlassian\Confluence\bin>tomcat9w.exe //ES//Confluence110522105657
在弹出的输入框中
Java下Java Options: 下添加-Dfile.encoding = UTF-8重启
service列表里的Confluence。再次登录,验证码显示了。

If you have any questions or any bugs are found, please feel free to contact me.
Your comments and suggestions are welcome!
边栏推荐
- NOIP1998-2018年普及组 CSP-J2 2019 2020 解题报告及视频
- Yesterday, metauniverse | Wal Mart set up an innovation department to explore metauniverse and Web3, and Dior released the metauniverse Exhibition
- MATLB|可视化学习(plot和bar)
- Noip popularization group 2006-2018 preliminary round 2019 csp-j1 2020 csp-j1 improvement program
- Can Huawei become a "brother of lipstick" or a "Queen of goods"?
- EasyCVR播放视频出现卡顿花屏时如何解决?
- Tacacs+服务器部署
- RHEL6.4中使用Cacti+Spine监控远程主机
- DPDK 20.11编译安装运行程序
- np tips: random 创建随机矩阵 sample = np.random.random([19, 64 , 64, 3])
猜你喜欢

免费、强大、高颜值的笔记软件评测: OneNote、Heptabase、氢图、FlowUs

Lucky draw animation - Carp jumps over the dragon's gate

The new paradigm of AI landing is "hidden" in the next major upgrade of software infrastructure

This simple little function saves 213 hours for our production research team in half a year

关于接口测试自动化的总结与思考
Super detailed steps for MySQL master-slave switching

StackOverflow 2022 开发者报告:PostgreSQL 超越 MySQL !

Introduction to LTSpice circuit simulation

大型体育赛事与犯罪风险

NOIP普及组2006-2018初赛 2019 CSP-J1 2020 CSP-J1 完善程序题
随机推荐
基于DataWorks的时效仿真平台|得物技术
解决sqoop出现 ERROR manager.SqlManager: Generic SqlManager.listDatabases() not implemented
Noip popularization group 2006-2018 preliminary round 2019 csp-j1 2020 csp-j1 improvement program
3. caller service call - dapr
Js中的Bom
apache 设置timeout参数
How to query the last data according to multiple indexes to achieve the effect of SQL order by desc limit 1?
Noip1998-2018 popularization group csp-j2 2019 2020 problem solving report and video
Curve 替换 Ceph 在网易云音乐的实践
2019 CSP J2入门组 CSP-S2提高组 第2轮 视频与题解
Tianyi cloud web application firewall (edge cloud version) passed the first batch of trusted authentication
「杰伦熊」暴跌96.6% 明星带货NFT为何遇冷?
【208】基于AccessToken方式实现API设计
PMD-源代码分析器介绍
[tcapulusdb knowledge base] how webclient users read and modify data
NOIP2011-2018提高组解题报告
Noip1998-2018 csp-s2 2019 2021 improvement group problem solving report and video
Gartner announces five privacy trends from today to 2024
Yesterday, yuancosmos | meta's "yuancosmos" Department lost $2.96 billion in the first quarter, and Liufu jewelry issued Digital Collections
Have you ever encountered the error that the main key of this setting is consistent with the database?