我正在使用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