Single

Docker部署mysql5.7

docker安装

docker部署mysql
docker run --name devops-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=12345678 --restart=always \
-v /usr/local/docker/mysql/conf:/etc/mysql \
-v /usr/local/docker/mysql/logs:/var/log/mysql \
-v /usr/local/docker/mysql/data:/var/lib/mysql \
-e MYSQL_DATABASE=changle -e TZ=Asia/Shanghai \
-d mysql:5.7 --character-set-server=utf8mb4 \
--collation-server=utf8mb4_unicode_ci \
--default-time_zone='+8:00' 

字段含义

1

暂无评论

发表评论