Maybe it’s the username configured directly in the db. When spring reads it through ${username}, it seems to read the name of the computer administrator? I’m not sure exactly. Changing the username to something else solves the problem. Thank you everyone
Re-authorize the mysql database root account. The command line should be set to only allow localhost request address login. It can be modified to the % method
Check the username, the error prompted is minjj@localhost cannot be accessed
That is, the username used when connecting is minjj instead of the root account you posted.
Check your code,
Did the user name be written in the connection code?
Whether the configuration file is read correctly
The account you logged in with is different from the account in your profile. Find out the reason yourself
80% of the time remote access is not enabled and IP addresses similar to 127.0.0.1 are not allowed to access, or it is hard-coded in the program code
Maybe it’s the username configured directly in the db. When spring reads it through ${username}, it seems to read the name of the computer administrator? I’m not sure exactly. Changing the username to something else solves the problem. Thank you everyone
Re-authorize the mysql database root account. The command line should be set to only allow localhost request address login. It can be modified to the % method