mysql 8、vs.net2019
在vs.net2019-服務器資源管理器-數據連接 創建mysql連接時,出現Authentication method 'caching_sha2_password' not supported by any of the available plugins. 錯誤。
解決方法:
1、my.ini 加入以下配置后重啟mysql
[mysqld] default_authentication_plugin=mysql_native_password
2、在mysql中新建一個賬戶root2,使用root2賬戶連接即可