-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR 1709 (HY000): Index column size too large. The maximum column size is 767 bytes. #68
Comments
I also encoutered this problem:
|
And got it fixed by running:
I think the longest domain name could be lowered to 191 characters instead. Who domains that long anyway? |
This happened because of my charset. I was using
|
@onnimonni thanks for the report! Sorry to get to this so late, I'll update it ASAP - indeed WP core now limits indexes to 191 characters since the move to |
...also, fwiw, there is innodb_large_prefix which is evidently going to become default in future (beyond MySQL 5.7.7 | MariaDB 10.2.2) |
@wp-networks thanks for the input. I made a start on this but need to introduce a db version option as |
Sorry for the wait @webp @onnimonni @wp-networks - latest WP has some better |
After WP changes from utf8 to utf8mb4, when trying to create Aliases in Network Admin > Sites > Edit Site screen:
ERROR 1709 (HY000): Index column size too large. The maximum column size is 767 bytes.
Caused by mercator.php:
Patched it by changing from:
domain varchar(255) NOT NULL,
change to:
domain varchar(191) NOT NULL,
If domain varchar(192), ERROR 1709 (HY000): Index column size too large, but domain varchar(191) is ok. So max domain varchar is 191.
Reason see: Mechanics of Flite - Prepping your MySQL indexes for a character set change Prepping Your MySQL Indexes for a Character Set Change
When changing a MySQL table or column to a new character set that uses more bytes than the old character set, you need to first check if any schema changes are needed to accomodate the change. For example, changing character sets from latin1 to utf8 is an increase from 1 to 3 bytes, and changing from utf8 to utf8mb4 is an increase from 3 to 4 bytes. .....
The text was updated successfully, but these errors were encountered: