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的字符集爲uft8 再次執行時正常。 二、mysql的字符集爲utf8mb4 1、先檢查一下數據庫被限制了索引的大小 SHOW variables like ‘innodb_large_prefix’; 如果查詢的值是off的
相關文章
相關標籤/搜索