解决使用DBeaver 25.15连接MySQL 8.0时报错:Public Key Retrieval is not allowed

解决使用DBeaver 25.15连接MySQL 8.0时报错:Public Key Retrieval is not allowed

我在使用DBeaver 25.15 连接数据库时,报错了:Public Key Retrieval is not allowed

解决方法如下:

1、在 DBeaver 的“数据库导航器”中,右键点击出错的数据库连接,选择 “编辑连接” (或按 F4 键)

2、在弹出的设置窗口中,切换到 “驱动属性” (Driver Properties) 标签页

3、点击 “添加属性” 按钮在新增的行中,输入:

  属性名称allowPublicKeyRetrieval

  属性值true

4、点击 “测试连接” 验证设置是否成功