Home > Back-end >  MySql8 springboot connection error: Access denied for user 'root' @ 'localhost'
MySql8 springboot connection error: Access denied for user 'root' @ 'localhost'

Time:03-08

Yml Settings,
Server:
Port: 8027
#???????
Spring:
Datasource:
Url: JDBC: mysql://localhost: 3306/testdb? UseSSL=false& ServerTimezone=UTC& AllowPublicKeyRetrieval=true & amp; ServerTimezone=UTC
The driver - class - name: com. Mysql. Cj). The JDBC driver
# runtime to initialize the database at a time, if you don't need to comment out
Initialization - mode: always
Username: root
Password: "XXXXXXX"
Jpa:
Hibernate:
DDL - auto: none
User password must be correct (NAVICAT can connect), root permissions changed to %, specific

CodePudding user response:

Where the data source that bean for connection, a breakpoint, see password what is!
  • Related