java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES) for my sql -


i tried importing existing project consists of spring mvc & hibernate while running application through tomcat i'm having troubles project , involves hibernateand mysql connection .

when following :

java.sql.sqlexception: access denied user 'root'@'localhost' (using password: yes)     @ com.mysql.jdbc.sqlerror.createsqlexception(sqlerror.java:1074)     @ com.mysql.jdbc.mysqlio.checkerrorpacket(mysqlio.java:4120)     @ com.mysql.jdbc.mysqlio.checkerrorpacket(mysqlio.java:4052)     @ com.mysql.jdbc.mysqlio.checkerrorpacket(mysqlio.java:925)     @ .. 

it looks privelege issue. try run on console

grant privileges on *.* 'root'@'localhost' identified 'root' grant option; 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -