1.报错信息
Unknown initial character set index '224' received from server. Initial client character set can be forced via the 'characterEncoding' property.
背景:
在主机上telnet mysql的ip port时,发现是通的,但是乱码,再加上上面的错误日志,可以基本确认是字符编码的问题,修改options或者链接后拼接参数试试
2.解决办法
在链接后设置useUnicode=true&characterEncoding=utf8