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

解决方案:

  1. 首先查看数据库的版本号,删除旧的jar包,将mysql-connector-java.jar更换成对应版本号
    java.sql.SQLException: Unknown initial character set index '255' received from server. Ini
  2. 同时在连接数据库的url后加上?useUnicode=true&characterEncoding=utf-8
    java.sql.SQLException: Unknown initial character set index '255' received from server. Ini
上一篇:com.mysql.cj.exceptions.WrongArgumentException: Malformed database URL, failed to parse the connec


下一篇:解决jsp网页提交中文到mysql数据库后显示???乱码情况的问题