Some of you may say "there's a lot of answers in other threads" or "Google it". But actually I didn't find the answer.
I am developing a PHP / MySQL project using symfony and for an unknown reason (meaning "I wasn't writing any php line"), I got this error "SQLSTATE[42000]: Syntax error or access violation: 1286 Unknown table engine 'InnoDB'".
I already tried these solutions:
- Restart MySQL
- Stop MySQL, delete ib_logfile0 and ib_logfile1, Start Mysql
- Do a "Show engines". This command returns no instance of "InnoDB". Not even a "NOT ACTIVE" (weird, right ?).
- (even weirder) PHPMyAdmin displays all tables except that the ones using InnoDB display "used" instead of "InnoDB". No problem with MyISAM tables.
Some people suggested to dump database, recompile MySQL and load the sql file into the recompiled database but... Let say I'm not in the mood for that (that would take a LOT of time).