How to limit MySQL engine types

  • When creating a table, I want to limit what MySQL engines can be selected. I tried adding something like this but it doesn't work:

    class AdminerSoftware extends Adminer {
            function engines() {
                $engines = array("InnoDB");
                return $engines;
        return new AdminerSoftware;

    Any ideas from anyone? Thanks

  • Jakub Vrána
    Jakub Vrána

    You can disable it on the database level with options like skip-innodb. It's currently not possible to hide it only from Adminer. What's the use case? I can implement the extension but using other engines will be still possible from SQL command.