一、启动 MySQL
MySQL在Docker中
1. 找到对应的 mysql 镜像
docker ps -a
2. 启动 mysql 镜像
docker start CONTAINER_ID
3. 将docker设置成开机启动
systemctl enable docker
4. 将MySQL镜像设置成开机启动
docker update --restart=always CONTAINER_ID
二、启动 confluence
1. find / -name confluence
/home/local/atlassian/confluence/bin
2. ./startup.sh
· 报错
MESSAGE: closing inbound before receiving peer's close_notify
· 解决
- 找到数据库链接文件
/home/local/atlassian/application-data/confluence/confluence.cfg.xml
- 数据库连接后面加上?useSSL=false
3. ./startup.sh
· 报错
MySQL session isolation level 'REPEATABLE-READ' is no longer supported. Session isolation
· 根据页面提示的链接,去官网找到答案
先查看 mysql 版本
SELECT VERSION();
得到版本是8.0
根据官网提示,数据库连接后面加上
sessionVariables=transaction_isolation='READ-COMMITTED'
4. ./startup.sh
· 报错
The reference to entity “sessionVariables“ must end with the ‘;‘ delimiter
数据库链接中两个参数之间的& 用 & 代替
sessionVariables=transaction_isolation='READ-COMMITTED'&useSSL=false
5. ./startup.sh
启动成功