0
docker 安装mysql 8
source link: http://www.hechunbo.com/index.php/archives/429.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
docker 安装mysql 8
docker pull mysql:8.0.20
docker run -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=root -d mysql:8.0.20
docker cp mysql:/etc/mysql /opt/mysql8.0.20
docker stop mysql
docker rm mysql
docker run \
-p 3306:3306 \
--name mysql \
--privileged=true \
--restart unless-stopped \
-v /opt/mysql8.0.20/mysql:/etc/mysql \
-v /opt/mysql8.0.20/logs:/logs \
-v /opt/mysql8.0.20/data:/var/lib/mysql \
-v /etc/localtime:/etc/localtime \
-e MYSQL_ROOT_PASSWORD=root \
-d mysql:8.0.20
本文由 hcb 创作,采用 知识共享署名 3.0,可自由转载、引用,但需署名作者且注明文章出处。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK