現状をチェック
show table status;
を打つと、Row_format=Compact
になっていると思います。
show variables like "%innodb_file%";
これをうつと
innodb_file_format=Antelope
になっていると思います。
この状態で以下をやっても無駄です
-
ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
をつけた create table をしても -
ALTER TABLE tbl ROW_FORMAT=DYNAMIC;
なんかをしても
Barracuda にしてあげる
my.cnf
innodb_file_format = Barracuda
innodb_file_format_max = Barracuda
などとしてあげる。
これで、alter table などで Row_format を変更することができるようになります。
AWS での変更方法
参考 https://medium.com/tensult/converting-rds-mysql-file-format-from-antelope-to-barracuda-ba8a60b2c1ec