[Maria-discuss] max key length in import
I’m considering moving from MySql to MariaDB so I did a dump today and attempted an import. It failed with the “Specified key was too long; max key length is 767 bytes” error. I dealt with this in MySql and knew to change file format to Barracuda. I zapped the partial import, did a fresh mysql_install_db, restarted the service and tried again to no avail. To confirm my settings immediately after the failure: MariaDB [(none)]> SHOW VARIABLES LIKE 'innodb_file_%'; +--------------------------+-----------+ | Variable_name | Value | +--------------------------+-----------+ | innodb_file_format | Barracuda | | innodb_file_format_check | ON | | innodb_file_format_max | Barracuda | | innodb_file_per_table | ON | +--------------------------+—————+ Does anyone have any suggestions? The dump is 795M compressed so it’s difficult to find the exact place where the problem is (I used zcat for the import). My distribution is: 10.0.22-MariaDB running on Ubuntu 15.04 Thanks in advance.
Hi!
On 16 Dec 2015, at 06:47, Warren H. Prince <wprince@princelaw.com> wrote:
I’m considering moving from MySql to MariaDB so I did a dump today and attempted an import. It failed with the “Specified key was too long; max key length is 767 bytes” error. I dealt with this in MySql and knew to change file format to Barracuda. I zapped the partial import, did a fresh mysql_install_db, restarted the service and tried again to no avail. To confirm my settings immediately after the failure:
The workaround should be: set global innodb_large_prefix=on; For discussion around this, see: https://answers.launchpad.net/maria/+question/241612 HTH -- Colin Charles, http://bytebot.net/blog/ twitter: @bytebot | skype: colincharles "First they ignore you, then they laugh at you, then they fight you, then you win." -- Mohandas Gandhi
I’m considering moving from MySql to MariaDB so I did a dump today and attempted an import. It failed with the “Specified key was too long; max key length is 767 bytes” error. I dealt with this in MySql and knew to change file format to Barracuda. I zapped the partial import, did a fresh mysql_install_db, restarted the service and tried again to no avail. To confirm my settings immediately after the failure:
The workaround should be: set global innodb_large_prefix=on;
For discussion around this, see: https://answers.launchpad.net/maria/+question/241612
I actually had tried that and received an: ERROR 1105 (HY000) at line 16479: Unknown error So, at a friend’s suggestion, I’m running it again with —verbose so I might be able to see where it crashes. I also decompressed the file which is now about 6G. At any rate, we’re beyond where I think it crashed previously, but it’s running very, very slow presumably due to the —verbose. It looks like it might, eventually, work this way. Been running for about 12 hours now. Thanks for the suggestion.
participants (2)
-
Colin Charles
-
Warren H. Prince