在测试使用abp的mysql demo时,进行数据迁移时出现一下错误:
Applying migration '20180205084033_Initial_Migration'.
Failed executing DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX `IX_AbpLanguageTexts_TenantId_Source_LanguageName_Key` ON `AbpLanguageTexts` (`TenantId`, `Source`, `LanguageName`, `Key`);
MySql.Data.MySqlClient.MySqlException (0x80004005): Specified key was too long; max key length is 1000 bytes ---> MySql.Data.MySqlClient.MySqlException (0x80004005)
解决方案:
修改mysql默认数据库引擎改为Inndb,重启一下mysql数据库再进行数据库迁移就可以