原文:nacos连接MySQL:Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

参考 https: www.cnblogs.com tingguoguoyo p .html 进MySQL之后 输入以下语句,进入mysql库: use mysql 更新域属性, 表示允许外部访问: update user set host where user root 执行以上语句之后再执行 刷新配置 : FLUSH PRIVILEGES 再执行授权语句: GRANT ALL PRIVILEG ...

2020-09-11 22:12 0 552 推荐指数:

查看详情

Could not create connection to database server. Attempted reconnect 3 times. Giving up.

报出这个错误,可能原因: 1、检查MySQL数据库服务是否正常(包含检查服务名和密码),如果不正常,修复至正常为止; 2、maven工程中导入的mysql的jar版本和你的MySQL版本不相符,必须相一致才行!比如,你安装的MySQL是8.x,必须使用高版本对应 ...

Fri Nov 15 00:40:00 CST 2019 0 982
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM