使用XAMPP,我在本地机器上运行了一个MySQL数据库和一个Apacha web服务器。
我在基于Spring boot的源代码上执行以下Maven-command:
mvn spring-boot:run然后,我将面临以下错误消息:
Unable to obtain Jdbc connection from DataSource
------------------------------------------------
SQL State : 28000
Error Code : 1045
Message : Access denied for user 'root'@'localhost' (using password: YES)发布于 2018-02-12 18:32:55
Spring-boot中使用的密码与MySQL中的默认密码不同。
您可以在以下位置找到默认的MySQL密码:
\xampp\phpMyAdmin\config.inc.php更具体地说,编辑此行:
$cfg['Servers'][$i]['password'] = '';https://stackoverflow.com/questions/48744043
复制相似问题