title: Unable to load authentication plugin 'caching_sha2_password'. even when mysql-connector is up to date
body: <pre><code>Unable to load authentication plugin 'caching_sha2_password'.
  </code></pre>
  
  <p>Getting this error.</p>
  
  <p>Have this dependency:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;mysql&lt;/groupId&gt;
    &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
    &lt;version&gt;8.0.12&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>(8.0.14 has the same error) and the version of mysql I try to connect to is 8.0.12.</p>
  
  <p>How can I fix that error (without switching to mysql_native_password).</p>