on-internet
← Community

MySQL 8.0.11 is throwing CLIENT_PLUGIN_AUTH is required

Stack Overflow ·

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. In pom.xml, <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.11</version> </dependency> In class, 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()); }

Comments

Sign in or sign up to comment and upvote.

No comments yet.