首页 > 其他 > 详细

Unknown initial character set index ‘255‘ received from server. Initial client character 解决方法

时间:2021-04-19 01:39:52      阅读:16      评论:0      收藏:0      [点我收藏+]

问题描述:

java.sql.SQLException: Unknown initial character set index ‘255‘ received from server. 
Initial client character set can be forced via the ‘characterEncoding‘ property.

原因分析:

MySQL驱动和数据库字符集设置不搭配

解决方案:

添加 ?useUnicode=true&characterEncoding=utf8

"jdbc:mysql:///maven02?useUnicode=true&characterEncoding=utf8","用户名","密码")          

成功解决

技术分享图片

Unknown initial character set index ‘255‘ received from server. Initial client character 解决方法

原文:https://www.cnblogs.com/Slience-me/p/14674460.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!