当前位置:网站首页>Public Key Retrieval is not allowed error solution when DBeaver connects to MySQL 8.x

Public Key Retrieval is not allowed error solution when DBeaver connects to MySQL 8.x

2022-07-31 14:57:00 I don't know and don't care

Two solutions (choose one of them):

Method 1: jdbc url with this parameter allowPublicKeyRetrieval=true

Method 2: The jdbc url takes this parameter useSSL=false

The reason is that mysql8 defaults useSSL=true and allowPublicKeyRetrieval=false for security; if we do not configure an SSL certificate, then set useSSL=false or use the public key provided by the server, but these two methods are not safe, so the default isDisabled, you need to manually enable it yourself.

Official document statement:

MySQL Connection String for C# .NET Core Programs - MySqlConnectorDocumentation for MySqlConnector: an Async MySQL Driver for.NET and .NET Corehttps://mysqlconnector.net/connection-options/

原网站

版权声明
本文为[I don't know and don't care]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/212/202207311451306535.html