Skip to content

Database migration failed with "Index column size too large. The maximum column size is 767 bytes" while upgrading to 3.0.0 #1403

Discussion options

You must be logged in to vote

I think my MariaDB version is new enough as it's still under supported, and it's quite dangerous to upgrade the version as it's also used in other services.

Finally I found the solution to fix this, the Row_format of original tables was set to Compact.

SHOW TABLE STATUS FROM {DB_NAME}

Just alter them all to Dynamic.

ALTER TABLE api_key_roles row_format = dynamic;
ALTER TABLE api_keys row_format = dynamic;
ALTER TABLE domains row_format = dynamic;
ALTER TABLE migrations row_format = dynamic;
ALTER TABLE short_urls row_format = dynamic;
ALTER TABLE short_urls_in_tags row_format = dynamic;
ALTER TABLE tags row_format = dynamic;
ALTER TABLE visit_locations row_format = dynamic;
ALTER TABLE v…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by acelaya
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants
Converted from issue

This discussion was converted from issue #1401 on March 12, 2022 08:50.