-1

docker-compose.yml

mysql:
    image: mysql:5.7.26
    container_name: my-mysql
    restart: always
    command: --default-authentication-plugin=mysql_native_password
    ports:
      - 3306:3306
    volumes:
      - ./mysql/data/:/var/lib/mysql/
    environment:
      MYSQL_ROOT_PASSWORD : 12355

TIM截图20191119172453.png

TIM截图20191119172434.png

11月19日提问
1 个回答
-1

之前设置错误

执行 GRANT ALL ON . TO root@'%' IDENTIFIED BY '12233**' WITH GRANT OPTION;

flush privileges;

OK了


撰写答案

推广链接