我正在使用 docker 运行 api 平台 2.5 版本。配置是 php : 7.2 mysql: 8.0 symfony: 4.3
学说的 .env 文件
DATABASE_URL=mysql://root:root@127.0.0.1:3306/test
当我跑步时
php bin/console doctrine:schema:create
我收到错误
PDO::__construct(): The server requested authentication method unknown to the client [caching_sha2_password]
我该如何解决这个问题?