Unknown collation: ‘utf8mb4_0900_ai_ci‘

报错信息

[SQL] Query bpm-flowable start
[ERR] 1273 - Unknown collation: 'utf8mb4_0900_ai_ci'
[ERR] 
CREATE TABLE `ACT_RU_HISTORY_JOB` (
  `ID_` varchar(64) COLLATE utf8_bin NOT NULL,
  `REV_` int DEFAULT NULL,
  `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL,
  `LOCK_OWNER_` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `RETRIES_` int DEFAULT NULL,
  `EXCEPTION_STACK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL,
  `EXCEPTION_MSG_` varchar(4000) COLLATE utf8_bin DEFAULT NULL,
  `HANDLER_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `HANDLER_CFG_` varchar(4000) COLLATE utf8_bin DEFAULT NULL,
  `CUSTOM_VALUES_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL,
  `ADV_HANDLER_CFG_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL,
  `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  `SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '',
  PRIMARY KEY (`ID_`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin;

报错截图

Unknown collation: ‘utf8mb4_0900_ai_ci‘_第1张图片

报错原因

  • collation不兼容,一个是 utf8mb4_0900_ai_ci,另一个是utf8mb4_general_ci。

报错解决

  • 将备份的SQL语句中涉及到utf8mb4_0900_ai_ci,修改为utf8mb4_general_ci,重新导入即可

参考文档

  • https://www.lifesailor.me/archives/2676.html

你可能感兴趣的:(报错信息,mysql)