MySQL key_block_size
earthgecko opened this issue · comments
earthgecko commented
The declaration of the mysql_key_block_size breaks z_fp_ and z_ts_ tables creation in MySQL 5.7
DatabaseError: (mysql.connector.errors.DatabaseError) 1031 (HY000): Table storage engine for 'z_fp_12345' doesn't have this option [SQL: '\nCREATE TABLE z_fp_12345 (\n\tid INTEGER NOT NULL AUTO_INCREMENT, \n\tfp_id INTEGER NOT NULL, \n\tfeature_id INTEGER NOT NULL, \n\tvalue DOUBLE, \n\tPRIMARY KEY (id)\n)ENGINE=InnoDB CHARSET=utf8 KEY_BLOCK_SIZE=255\n\n']
This was fine up to MySQL 5.6 apparently https://stackoverflow.com/a/46290127
Removing the mysql_key_block_size='255',
parameter fixes this and is backwards compatible.