Closed dev-rke closed 6 years ago
Just to be complete, another solution would be to enable large_key_prefix:
https://dev.mysql.com/doc/refman/5.7/en/innodb-restrictions.html#innodb-maximums-minimums
- If innodb_large_prefix is enabled (the default), the index key prefix limit is 3072 bytes for
InnoDB tables that use DYNAMIC or COMPRESSED row format.
- If innodb_large_prefix is disabled, the index key prefix limit is 767 bytes for tables of any
row format.
Hi, thanks for the input, i was not aware of that. But i think it should work with a default configuration as well. ;-)
Hi,
i am using TYPO3 7.6.24 with ig_ldap_sso_auth 3.3.0.
When i run updating database tables within install tool (from 3.2.2 to 3.3.0), i get the following error:
I fixed this locally by changing ext_tables.sql to
I changed
KEY tx_igldapssoauth_dn (tx_igldapssoauth_dn)
toKEY tx_igldapssoauth_dn (tx_igldapssoauth_dn(64))
I assume that this issue does only pop up when mysql is in strict mode (as it is in percona by default): https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sql-mode-strict
Might it be possible to release a fix for this? Unfortunately key length is limited to 255 bytes (not chars), so you are unable to index the whole string. See more details e.g. here: https://stackoverflow.com/questions/1827063/mysql-error-key-specification-without-a-key-length
Thank you for this great extension, it is really stable and simplifies us the login for thousands of editors! :-)