当前位置:   article > 正文

【问题解决:连接异常】 java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long...

java.lang.classcastexception: java.math.biginteger cannot be cast to java.la

问题描述:

MySQL更新到8.0.11之后连接数据库时会报出错误

Your login attempt was not successful, try again.
Reason: Could not get JDBC Connection; nested exception is java.sql.SQLException: java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long

 

 解决方式:

检查下原因发现是MySQL驱动包版本不一致,

mysql-connector-java.jar的版本5.1.21改为8.0.11即可

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/1011949
推荐阅读
相关标签
  

闽ICP备14008679号