解决Mysql连时出现Public Key Retrieval is not allowed

数据库连接时出现这样的错误:

Public Key Retrieval is not allowed

可以在你的url后面加上:

 &allowPublicKeyRetrieval=true

注意自己的连接语句 密码 是否正确!

其他方法可见:https://blog.csdn.net/Yuriey/article/details/80423504
的评论区!

你可能感兴趣的:(笔记,mysql,jdbc)