docker-compose之mysql配置

mysql:
        image: mysql:8.0.20
        container_name: mysql.6606 # 容器名
        #        command:
                #            - default-authentication-plugin=mysql_native_password
                #            - character-set-server=utf8mb4
                #            - collation-server=utf8mb4_general_ci
                #            - max_connections=1000
        restart: always
        environment:
            - MYSQL_ROOT_PASSWORD=Dahai@21cn
        ports:
            - '6606:3306'
        volumes:
            - "/data/docker/mysql/data/db:/var/lib/mysql"
            - "/data/docker/mysql/data/conf:/etc/mysql/conf.d"
点赞

发表评论

昵称和uid可以选填一个,填邮箱必填(留言回复后将会发邮件给你)
tips:输入uid可以快速获得你的昵称和头像

Title - Artist
0:00