为了账号安全,请及时绑定邮箱和手机立即绑定

docker-compose mysql 进入容器连接不上,总是说密码错误怎么回事?

/ 猿问

docker-compose mysql 进入容器连接不上,总是说密码错误怎么回事?

qq_今天O_o_0 2018-12-04 17:55:44

version: '3'
services:
    db:
        image: docker.io/mysql:5.7
        container_name: db
        volumes:
            - /home/vagrant/docker-compose/spring-boot-compose/enjoy-dir/mysql/data:/var/lib/mysql
            - /home/vagrant/docker-compose/spring-boot-compose/enjoy-dir/mysql/logs:/var/log/mysql
        environment:
            MYSQL_ROOT_PASSWORD: root
            MYSQL_USER: 'test'
            MYSQL_PASS: 'test'
        command: --default-authentication-plugin=mysql_native_password
        restart:
            always

查看完整描述

目前暂无任何回答

添加回答

回复

举报

0/150
提交
取消
意见反馈 邀请有奖 帮助中心 APP下载
官方微信