1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

mysql 8k の壁を超える手順

Last updated at Posted at 2020-01-02

現状をチェック

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

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?