Exception in thread “main“ java.sql.SQLException: Unknown initial character set index ‘255‘ received

  • Post author:
  • Post category:java




Exception in thread “main” java.sql.SQLException: Unknown initial character set index ‘255’ received from server. Initial client character set can be forced via the ‘characterEncoding’ property.

在这里插入图片描述

解决方法:

只需要在URL的最后面加上?useUnicode=true&characterEncoding=utf-8

在这里插入图片描述



版权声明:本文为kkkkkkws原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。