Unknown initial character set index '255'
上一节
下一节
问题描述:如下图:
java.sql.SQLException: Unknown initial character set index '255' received from server. Initial client character set can be forced via the 'characterEncoding' property.
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
解决方案:
JDBC的url设置编码
url=jdbc:mysql://localhost:3306/newsdb?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8

