在连接数据库时出现 Unknown initial character set index ‘255’ received from server. Initial client character set can be forced via the ‘characterEncoding’ property.报错信息时
解决方法之一:
将String url=“jdbc:mysql://localhost:3306/912sx” 改为String url=“jdbc:mysql://localhost:3306/912sx?useUnicode=true&characterEncoding=utf8”;