Specified key was too long; max key length is 767 bytes mysql
2016-08-02 15:49
621 查看
Specified key was too long; max key length is 767 bytes
说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。异常详细信息: MySql.Data.MySqlClient.MySqlException: Specified key was too long; max key length is 767 bytes
给Context增加如下的注解
[DbConfigurationType(typeof(MySql.Data.Entity.MySqlEFConfiguration))]
public class MyContext : DbContext
{
}
相关文章推荐
- mysql: Specified key was too long; max key length is 767 bytes
- MySQL错误:Specified key was too long; max key length is 767 bytes
- MySQL: ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes
- MySQL: ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes
- mysql [Err] 1071 - Specified key was too long; max key length is 767 bytes
- EF MySql:Specified key was too long; max key length is 767 bytes解决方案
- mysql [42000][1071] Specified key was too long; max key length is 767 bytes
- MySQL中ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes错误的处理
- mysql: Specified key was too long; max key length is 767 bytes
- MySQL: ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes
- 关于MySQL字符集问题:Specified key was too long; max key length is 767 bytes
- 关于MySQL字符集问题:Specified key was too long; max key length is 767 bytes
- MySQL-001-specified key was too long ; max key length is 767 bytes
- MySQL----ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes
- Hive集成Mysql作为元数据时,提示错误:Specified key was too long; max key length is 767 bytes
- MySQLSyntaxErrorException: Specified key was too long; max key length is 767 bytes
- mysql Specified key was too long; max key length is 767 bytes
- Mysql Specified key was too long; max key length is 767 bytes
- mysql:Specified key was too long; max key length is 767 bytes
- MySQL: ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes