docker run mysql confluence

  作者:会飞的zxl

mkdir -p/home/mysql/{conf,logs,data/mysql}docker run -ti -p 3306:

mkdir -p /home/mysql/{conf,logs,data/mysql}


docker run -ti -p 3306:3306 --name mysql57 -v /home/mysql/conf/my.cnf:/etc/mysql/my.cnf -v /home/mysql/logs:/logs -v /home/mysql/data/mysql:/var/lib/mysql -d mysql/mysql-server:5.7

docker logs mysql57


docker exec -it mysql57 mysql -uroot -p


ALTER USER 'root'@'localhost' IDENTIFIED BY 'Passw0rd';

create database confluence default character set utf8 collate utf8_bin;
GRANT ALL PRIVILEGES ON confluence.* TO 'confluence'@'%' IDENTIFIED BY 'Passw0rd' WITH GRANT OPTION;
FLUSH PRIVILEGES;


docker run -d -v /data/confluence:/var/atlassian/application-data/confluence -v /etc/localtime:/etc/localtime:ro --name confluence -p 8090:8090 -p 8091:8091 --link mysql57:db cptactionhank/atlassian-confluence:latest


jbdc:mysql://db/confluence?sessionVariables=tx_isolation='READ-COMMITTED'&useUnicode=true&characterEncoding=utf8