docker方式运行mysql
环境:centos 7 软件:docker-ce 运行命令: docker run --name mysql-lituyan-3308 --restart=unless-stopped -p 3306:3306 -v /data/mysql3306/datadir/:/var/lib/mysql -v /data/mysql3306/conf.d/:/etc/mysql.conf.d -e MYSQL_ROOT_PASSWORD=123456 -e TZ="Asia/Shanghai" -d mysql:5.7 --character-set-server=utf8 --collation-server=utf8_bin |