MySQL error: The maximum column size is 767 bytes

前端 未结 10 1791
陌清茗
陌清茗 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:29

    With the help of the answer given by BK435, I did the following and solved the problem.

    set global innodb_file_format = BARRACUDA;
    set global innodb_large_prefix = ON;
    create table test (........) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
    

提交回复
热议问题