Home > Back-end >  For help, the idea on the Java program
For help, the idea on the Java program

Time:09-22

Could you tell me how to solve this error, oneself look for a long time can't solve, can connect oneself use tool, the password is also this, hair for the first time, also don't know much about the format, hope to be able to help have a look, can also be launched yesterday, very urgent
Java. SQL. SQLException: Access denied for user 'root' @ 'localhost' (using password: YES)
At com. Mysql. Cj. JDBC. Exceptions. SQLError. CreateSQLException (SQLError. Java: 129)
At com. Mysql. Cj. JDBC. Exceptions. SQLError. CreateSQLException (SQLError. Java: 97)
At com. Mysql. Cj. JDBC. Exceptions. SQLExceptionsMapping. TranslateException (SQLExceptionsMapping. Java: 122)
At com. Mysql. Cj. JDBC. ConnectionImpl. CreateNewIO (ConnectionImpl. Java: 835)
At com. Mysql. Cj. JDBC. ConnectionImpl. & lt; init> (ConnectionImpl. Java: 455)
At com. Mysql. Cj. JDBC. ConnectionImpl. GetInstance (ConnectionImpl. Java: 240)
At com. Mysql. Cj. JDBC. NonRegisteringDriver. Connect (NonRegisteringDriver. Java: 199)
At com. Alibaba. Druid. Filter. FilterChainImpl. Connection_connect (FilterChainImpl. Java: 149)
At com. Alibaba. Druid. Filter. Stat. StatFilter. Connection_connect (StatFilter. Java: 218)
At com. Alibaba. Druid. Filter. FilterChainImpl. Connection_connect (FilterChainImpl. Java: 143)
At com. Alibaba. Druid. Pool. DruidAbstractDataSource. CreatePhysicalConnection (DruidAbstractDataSource. Java: 1512)
At com. Alibaba. Druid. Pool. DruidAbstractDataSource. CreatePhysicalConnection (DruidAbstractDataSource. Java: 1575)
At com. Alibaba. Druid. Pool. DruidDataSource. Init (DruidDataSource. Java: 854)
The at Java. The base/JDK. Internal. Reflect. NativeMethodAccessorImpl. Invoke0 (Native Method)
The at Java. The base/JDK. Internal. Reflect. NativeMethodAccessorImpl. Invoke (NativeMethodAccessorImpl. Java: 62)
The at Java. The base/JDK. Internal. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java:
The at Java. The base/Java. Lang. Reflect. Method. Invoke (567) Method. The Java:

CodePudding user response:

See the error message or you have a problem to access the database
Check your configuration database code, reference this
https://blog.csdn.net/QQ17680473835/article/details/81841180

CodePudding user response:

This I have seen, is not this reason, the other is a computer can start

CodePudding user response:

Check your mysql version, different versions of the mysql driver classname

CodePudding user response:

refer to the second floor empertst response:
this I have seen, is not this reason, the other is a computer can start


Another computer?

You are using localhost local account, another can start? If mysql installed on another computer, you need to enter the IP address of the mysql server, instead of localhost

CodePudding user response:

The & amp; No change & amp; amp; Have a try

CodePudding user response:

Procedures and tools on the same computer? This is obviously the user have no permission to access, to check the mysql server, whether this user opened access permissions on this host

CodePudding user response:

Just saw are native, since yesterday can even, only that you changed today

CodePudding user response:

Computer only a mysql or have multiple version, if it is multiple, see which version you open, in addition to the authentication information check the configuration file, is your user name and password?
  • Related