utf8mb4_general_ci报错解决方案

错误:

Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: COLLATION 'utf8mb4_general_ci' is not valid for CHARACTER SET 'utf8'

解决:

database格式

Default Character Set = utf8mb4

Default Collation = utf8mb4_unicode_ci

重新插入数据即可

 
posted @ 2020-04-27 07:59  夏冬青  阅读(8469)  评论(0编辑  收藏  举报