Exception in thread "main" java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
Exception in thread "main" java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
Exception in thread "main" java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
2015-04-07
舉報
2017-04-12
一方面可能是你密碼錯了我,另一個就是你寫的properties文件不符合規(guī)范,改成如下就可以了:
jdbc.propertis
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/seckill?useUnicode=true&characterEncoding=utf8
user=root
password=123
對應(yīng)的配置連接池屬性也要改。
2015-07-16
同問 !~?。。。。。?/p>
2015-04-08
檢查一下數(shù)據(jù)庫的密碼對嗎