MySQL: ROW_FORMAT=DYNAMIC
create table option by default
#34742
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since MySQL 5.7.9, the
innodb_default_row_format
option defines thedefault row format for InnoDB tables. The default setting is
DYNAMIC
.The row format is required for indexing on
varchar(255)
withutf8mb4
columns.
As long as using MySQL 5.6, CI won't be passed even if MySQL server
setting is properly configured the same as MySQL 5.7
(
innodb_file_per_table = 1
,innodb_file_format = 'Barracuda'
, andinnodb_large_prefix = 1
) since InnoDB table is created as the rowformat
COMPACT
by default on MySQL 5.6, therefore indexing on stringwith
utf8mb4
columns aren't succeeded.Making
ROW_FORMAT=DYNAMIC
create table option by default for legacyMySQL version would mitigate the indexing issue on the user side, and it
makes CI would be passed on MySQL 5.6 which is configured properly.