码迷,mamicode.com
首页 > 数据库 > 详细

java.sql.SQLException: Unknown initial character set index '255' received from server. Initial client character set can be forced via the 'characterEncoding' property.解决方案

时间:2019-12-16 13:13:05      阅读:122      评论:0      收藏:0      [点我收藏+]

标签:initial   utf-8   图片   har   The   receive   cte   dex   版本   

解决方案:

  1. 首先查看数据库的版本号,删除旧的jar包,将mysql-connector-java.jar更换成对应版本号
    技术图片
  2. 同时在连接数据库的url后加上?useUnicode=true&characterEncoding=utf-8
    技术图片

java.sql.SQLException: Unknown initial character set index '255' received from server. Initial client character set can be forced via the 'characterEncoding' property.解决方案

标签:initial   utf-8   图片   har   The   receive   cte   dex   版本   

原文地址:https://www.cnblogs.com/NFii/p/12048524.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!