Skip to content

Can't Connect to Database #7

Description

@NaheelSalman

I have created Database , As well setup the project with jdbc
but still it can't connect with mysql server
i have tried using
user4, test123 or Test123
but failed to connect and get this error in my console screen:
java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:923) at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:404) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:317) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at com.inventory.database.ConnectionFactory.<init>(ConnectionFactory.java:26) at com.inventory.ui.LoginDialog.loginBttnMouseClicked(LoginDialog.java:193) at com.inventory.ui.LoginDialog.access$1(LoginDialog.java:187) at com.inventory.ui.LoginDialog$2.mouseClicked(LoginDialog.java:68)

dd
asd

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions