数据库
首页 > 数据库> > java.sql.SQLException: Unknown initial character set index '255' received from server. Ini

java.sql.SQLException: Unknown initial character set index '255' received from server. Ini

作者:互联网

解决方案:

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

标签:index,set,java,版本号,jar,characterEncoding,character
来源: https://www.cnblogs.com/NFii/p/12048524.html