I'm interested in trying this solution: https://dba.stackexchange.com/a/44893/71052, also referenced here: https://dba.stackexchange.com/a/206151/71052
The problem I face is the following:
- mysqldump exports explicitly the storage engine for each table:
CREATE TABLE `footable` (
`foocolumn1` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`foocolumn2` bigint(20) unsigned NOT NULL DEFAULT '0',
...
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
- when I'm restoring the dump, BlackHole is set as default engine, still the table is created as explicitly stated in the dump - which actually seems quite normal.
-> Is there a way to force an engine substitution? (I mean as a restore option, editing the dump is no solution here)
-> I suppose the solution is is the quoted post:
Start a dedicated Mysql server with as default engine blackhole (and maybe the only one)
How can I start a mysqld instance with Blackhole as the only available engine? I saw lots of docs about compiling with or without this or that engine, but I haven't found so far how to just start it without innodb, myisam etc...
enforce_storage_engine
-- maybe this would help? mariadb.com/kb/en/server-system-variables/…