end0tknr's kipple - web写経開発

太宰府天満宮の狛犬って、妙にカワイイ

mysql 8.0.17 で varchar() の合計文字数が 65535超の場合、「ERROR 1118 (42000): Row size too large.」

以下の通り、エラーとなりました。varhcar -> text とすることで解消するようです

mysql> CREATE TABLE contact_form_template (
    ->  id            integer        primary key AUTO_INCREMENT,
    ->  uid           varchar(1024),
    ->  form          varchar(1024),
    ->  ext1          varchar(4096),
    ->  ext2          varchar(4096),
          :
    ->  ext85         varchar(4096)
    -> );
ERROR 1118 (42000): Row size too large.
The maximum row size for the used table type, not counting BLOBs, is 65535.
This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs