DBeaver 鏈接本地mysql8.0服務報錯
Public Key Retrieval is not allowed
為什么會出現這個錯誤?
MySQL 8.0+ 默認使用新的認證插件:
caching_sha2_password
某些客戶端(比如老版本的 JDBC 驅動或配置不當的 DBeaver)在連接時,需要下載服務器的公鑰來加密密碼,但默認被服務器禁止。
修改 DBeaver 的連接設置:
打開你的 MySQL 連接設置
點擊 “Driver Properties”(驅動屬性)標簽
找到
allowPublicKeyRetrieval
,設置為:true