Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
moodle:innodb [2017-09-08] dcaimoodle:innodb [2020-04-19] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +<code>
 +SET GLOBAL innodb_file_format=Barracuda;
 +SET GLOBAL innodb_file_per_table=ON;
 +SET GLOBAL innodb_large_prefix=1;
 +logout & login (to get the global values);
 +ALTER TABLE tbl ROW_FORMAT=DYNAMIC;  -- or COMPRESSED
 +</code>
 +https://stackoverflow.com/a/43403017/69938
  
 +
 +add to my.cnf
 +
 +<code>
 +innodb_file_format=Barracuda
 +innodb_file_per_table=1
 +innodb_large_prefix=1
 +binlog_format=ROW
 +</code>