Project startup mysql error?

Access denied for user "root"@"localhost" (using password: yes)? There is no problem entering the password using mysql-u root-p, and there is no problem connecting using the graphical interface. This error is reported when starting the project in tomcat.

Nov.19,2021

check whether the password in tomcat is written correctly, and then check whether root@'localhost' has login permissions

Menu