当前位置:Gxlcms >
数据库问题 >
java.sql.SQLException: Unknown initial character set index '255' received from server. Initial client character set can be forced via the 'characterEncoding' property.解决方案
java.sql.SQLException: Unknown initial character set index '255' received from server. Initial client character set can be forced via the 'characterEncoding' property.解决方案
时间:2021-07-01 10:21:17
帮助过:14人阅读
解决方案:
- 首先查看数据库的版本号,删除旧的jar包,将mysql-connector-java.jar更换成对应版本号
- 同时在连接数据库的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 版本