mysql:error_1071
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mysql:error_1071 [2016/07/01 23:17] – peter | mysql:error_1071 [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 8: | Line 8: | ||
Thus, you need to multiply your key field' | Thus, you need to multiply your key field' | ||
- | * For **uft8** a maximum of 255 characters can therefore be used for InnoDB key field because 767/ | + | * For **uft8** a maximum of 255 characters can therefore be used for an InnoDB key field because 767/ |
- | * For **uft8mb4** a maximum of 191 characters can therefore be used for InnoDB key field because 767/ | + | * For **uft8mb4** a maximum of 191 characters can therefore be used for an InnoDB key field because 767/ |
There is also a separate 3072 byte limit per index. | There is also a separate 3072 byte limit per index. | ||
- | One workaround for these limits is to only index a prefix, for example, here only the 191 characters from column1 is part of the index: | + | One workaround for these limits is to only index part of a field, for example, here only 191 characters from column1 is part of the index: |
<code mysql> | <code mysql> |
mysql/error_1071.1467415062.txt.gz · Last modified: 2020/07/15 09:30 (external edit)