Docker-撰写Mysql 8.0默认身份验证插件问题

时间:2019-06-25 06:25:45

标签: docker-compose mysql-8.0

我正在使用docker-compose用flask和mysql构建一个Web应用程序。我正在使用mysql:8.0作为mysql的基本映像,但是我遇到了default-authentication-plugin问题。这是我的代码...

version: "2"
services:
  app:
    build: ./app
    links:
      - db
    ports:
      - "5000:5000"

  db:
    image: mysql
    ports:
      - "3306:3306"
    environment:
      MYSQL_ROOT_PASSWORD: root
    command: --default-authentication-plugin=mysql_native_password
    restart: always

出现以下错误消息

Authentication plugin 'caching_sha2_password' is not supported

0 个答案:

没有答案