Access denied for user \'root\'@\'localhost\' Could not obtain connection
某次在导入新项目时候出现异常: 1. 2017-11-13 10:50:55,437 [WARN]-[org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:204)] HHH000342: Could not obtain connection to query metadata : Access denied for user 'root'@'localhost' (using password: YES) HHH000342: Could not obtain connection to query metadata : Access denied for user 'root'@'localhost' (using password: YES) 项目使用的框架是spring 和 jpa,连接池使用c3p0, 以上问题可能有以下原因造成: 1,驱动配置有误:driver=com.mysql.jdbc.Driver 2,数据库连接地址有误:url=jdbc:mysql://localhost:3306/test?3useUnicode=true&characterEncoding=utf8 3,密码或帐号有误:username=root password=root 4