在Docker中安装MySQL5.7并开启远程访问(附授权和修改密码方式) #40
ycyin
announced in
Announcements
Replies: 1 comment
-
文章说的是在CentOS环境下操作没有任何问题,后来我在Win10系统的wsl2 ubuntu子系统中操作会有兼容性问题:
docker run --name mysql -p 3306:3306 --privileged \
-e MYSQL_ROOT_PASSWORD=root \
-v /mnt/d/devEnv/dockervolume/mysql/data:/var/lib/mysql \
-v /mnt/d/devEnv/dockervolume/mysql/conf:/etc/mysql/conf.d \
-v /mnt/d/devEnv/dockervolume/mysql/log:/var/log/mysql \
-d mysql:5.7.39 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
在Docker中安装MySQL5.7并开启远程访问(附授权和修改密码方式)
安装环境 Linux CentOS7(Linux version 3.10.0-1127.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) )),使用命令 cat /proc/version查看 Doc...
https://ycyin.eu.org/posts/Software/install-MySQL-and-open-remote-access-in-docker.html
Beta Was this translation helpful? Give feedback.
All reactions