idea中使用yml连接数据库Access denied for user ‘root‘@‘localhost‘ (using password: YES)

idea中使用yml连接数据库Access denied for user ‘root‘@‘localhost‘ (using password: YES),第1张

idea中使用yml连接数据库Access denied for user ‘root‘@‘localhost‘ (using password: YES) 1.在springboot框架中,我在学习过程中出现的数据库连接yaml问题

在yml配置文件中,如果密码是单纯的数字的话,需要加上单引号。否则会报错:
idea中yml连接数据库Access denied for user ‘root’@‘localhost’ (using password: YES)

亲身体会,很是折磨,网上搜了一大堆来回改了半天。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5710100.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存