How to limit MySQL engine types

Help
2012-07-26
2013-06-06
  • Nobody/Anonymous

    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 - 2012-07-27

    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.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks