zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

mysql出现 Specified key was too long; max key length is 1000 bytes

mysql is 出现 Key specified max too was
2023-09-14 09:00:00 时间

往MySQL导入数据时遇到

  Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key was too long; max key length is 1000 bytes

解决方法:

  修改mysql默认存储引擎

修改mysql配置文件

default-storage-engine=INNODB