Caused by: java.sql.SQLException: Access denied for user 'root'@'localhost' (usi

2021/5/30 2:30:32

本文主要是介绍Caused by: java.sql.SQLException: Access denied for user 'root'@'localhost' (usi,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

一、问题

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

解决方案:进行本地数据库的一个授权,将相应的用户root设置localhost访问权限,

>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456';

>FLUSH PRIVILEGES

 



这篇关于Caused by: java.sql.SQLException: Access denied for user 'root'@'localhost' (usi的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程