<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>DBeaver on CNELECAR</title>
    <link>https://www.cnelecar.com/tags/dbeaver/</link>
    <description>Recent content in DBeaver on CNELECAR</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 03 Feb 2026 08:21:17 +0000</lastBuildDate>
    <atom:link href="https://www.cnelecar.com/tags/dbeaver/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to Solve the Error Public Key Retrieval Is Not Allowed on DBeaver</title>
      <link>https://www.cnelecar.com/blog/how-to-solve-the-error-public-key-retrieval-is-not-allowed-on-dbeaver/</link>
      <pubDate>Tue, 03 Feb 2026 08:21:17 +0000</pubDate>
      <guid>https://www.cnelecar.com/blog/how-to-solve-the-error-public-key-retrieval-is-not-allowed-on-dbeaver/</guid>
      <description>&lt;p&gt;The error “Public Key Retrieval is not allowed” happens because MySQL 8+ uses caching_sha2_password as the default authentication plugin.&lt;/p&gt;
&lt;p&gt;When a client (like DBeaver) connects remotely, MySQL tries to use RSA public key encryption to secure the password. If the client does not allow retrieving the server’s public key, the connection fails with this error.&lt;/p&gt;
&lt;h2 id=&#34;solution&#34;&gt;Solution&lt;/h2&gt;
&lt;p&gt;To fix this, you can set allowPublicKeyRetrieval=true in DBeaver’s Driver Properties.&lt;/p&gt;
&lt;p&gt;Steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Right click on the database connection that you want to connect to.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Edit Connection&lt;/strong&gt; from the menu.
&lt;img alt=&#34;dbeaver-edit-connection&#34; loading=&#34;lazy&#34; src=&#34;https://www.cnelecar.com/blog/how-to-solve-the-error-public-key-retrieval-is-not-allowed-on-dbeaver/dbeaver-edit-connection.png&#34; title=&#34;dbeaver-edit-connection&#34;&gt;&lt;/li&gt;
&lt;li&gt;Switch to the tab &lt;strong&gt;Driver properties&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Modify the &lt;strong&gt;allowPublicKeyRetrieval&lt;/strong&gt; parameter to &lt;strong&gt;TRUE&lt;/strong&gt;.
&lt;img alt=&#34;change-driver-properties&#34; loading=&#34;lazy&#34; src=&#34;https://www.cnelecar.com/blog/how-to-solve-the-error-public-key-retrieval-is-not-allowed-on-dbeaver/change-driver-properties.png&#34; title=&#34;change-driver-properties&#34;&gt;&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;OK&lt;/strong&gt; to save the changes.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Now you can connect to your database without the error.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
