MySql8withdockercompose
// Docker-compose.yml of MySql 8
version: "3"
services:
mysql:
image: mysql
restart: always
ports:
- 3306:3306
volumes:
- /opt/mysql/mysql/:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root_password
command:
--default-authentication-plugin=mysql_native_password
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--explicit_defaults_for_timestamp=true
--lower_case_table_names=1
--max_allowed_packet=128M;
以上是 MySql8withdockercompose 的全部内容, 来源链接: utcz.com/z/533336.html