代码语言:docker复制
docker run -d -p 3306:3306
--privileged=true
-v /usr/local/data/mysql/conf/my.cnf:/etc/my.cnf
-v /usr/local/data/mysql/data:/var/lib/mysql
-e MYSQL_ROOT_PASSWORD=Ytd@1234
--name ytd-mysql-gahc mysql:5.7
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--lower_case_table_names=1