MySQL error: The maximum column size is 767 bytes

前端 未结 10 1794
陌清茗
陌清茗 2020-12-24 15:41

When I run a program which does something with MySQL, I got this error message:

2015-06-10 15:41:12,250 ERROR app.wsutils 419 INCRON: Error: (\'HY000\

10条回答
  •  南笙
    南笙 (楼主)
    2020-12-24 16:12

    I had this problem because I tried to create a String primary key with varchar(254). Easy to overlook sometimes.. So double check your index type and length as well :)

提交回复
热议问题