在docker中开启一个msyql
docker run \
--name some-mysql \
-e MYSQL_ROOT_PASSWORD=root \
-p 3306:3306 \
-v C:/Users/xwyst/DockerProjects/mysql/mysql-volume:/var/lib/mysql \
-v C:/Users/xwyst/DockerProjects/mysql/conf.d:/etc/mysql/conf.d \
--restart=always \
-d mysql:5.7 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=root -p 3306:3306 -v mysql-volume:/var/lib/mysql -v conf.d:/etc/mysql/conf.d --restart=always -d mysql:5.7 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci