Mac系统安装最新MySQL8.0.13,使用vscode连接时提示
ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client.
网上查了一下,这似乎是mysql的问题,不过解决方式很简单
ALTER USER '<your_user>'@'localhost' IDENTIFIED
WITH mysql_native_password BY '<your_password>';
同样的问题可能出现在你的应用程序里,解决方式也是如此。
具体原因看官方解释➡️⤵️
https://github.com/mysqljs/mysql/pull/1962