egg 连接 mysql 的 docker 容器,报错:Client does not support authentication protocol requested by server; consider upgrading MySQL client

时间:2023-03-09 04:20:28
egg 连接 mysql 的 docker 容器,报错:Client does not support authentication protocol requested by server; consider upgrading MySQL client

egg 连接 mysql 的 docker 容器,报错:Client does not support authentication protocol requested by server; consider upgrading MySQL client

解决办法:

mysql 中执行如下语句:

mysql> ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'yourPassword';

附:

'root'@'localhost' 与 'root'@'%' 的区别:

https://blog.csdn.net/lzq123_1/article/details/40863971