title: MySQL 8.0.11 is throwing CLIENT_PLUGIN_AUTH is required
body: <p>I am new to Java. I created Java Maven project and am getting the below error while connecting to MySQL. I am posting my code below.</p>
  
  <p>In pom.xml,</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.11&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>In class,</p>
  
  <pre><code> private void connection() {
       try {
              Class.forName("com.mysql.cj.jdbc.Driver").newInstance();
              connect = DriverManager.getConnection("jdbc:mysql://10.100.00.00:3305/dbname" , 
                                      "username","password");     
       }
       catch(SQLException ex) {       
           System.out.println(ex.getMessage());
  
       }
       catch(Exception ex) {      
           System.out.println(ex.getMessage());
       }
   }
  </code></pre>
  
  <p>It was throwing <strong>java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required</strong> from SQLException.</p>