简体   繁体   中英

How to disable creation of myisam table in mysql?

myisam engine is used by mysql system tables, so it can not be disabled simply. Is there any way to only disable creation of new myisam tables while keeping myisam exists in system?

您可以将default_storage_engine服务器变量设置为innodb ,例如,在您的选项文件中,这是较新版本的MySQL中的默认值。

I've writen a plugin to do this. It can disable creating new MYISAM tables.

https://github.com/xiezhenye/mysql-plugin-disable-myisam

In MySQL 5.7.8 and higher, disabled_storage_engines is the parameter you're looking for. Add

disabled_storage_engines = "MyISAM"

to your config file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM