2014年12月16日 星期二

[Code First,Entity Framework6,MySql,MariaDB] max key length is 767 bytes


資料庫底層改用MariaDB,之後出現max key length is 767 bytes的錯誤













參考此篇:

http://stackoverflow.com/questions/24981593/specified-key-was-too-long-max-key-length-is-767-bytes-mysql-error-in-entity-fr


另外出現此錯誤













參考此篇:

http://forums.mysql.com/read.php?38,622151,622151


用裡面中的方法2,將下面這句改放在Globa.asax中 Application_Start()

DbConfiguration.SetConfiguration(new MySql.Data.Entity.MySqlEFConfiguration());

即可正常顯示






沒有留言:

張貼留言

熱門文章