SET SQL_MODE=""; create table t1 (c1 int primary key auto_increment, c2 varchar(10)) engine=memory; show create table t1; set session sql_mode='no_engine_substitution'; --error ER_OPTION_PREVENTS_STATEMENT create table t2 (c1 int primary key auto_increment, c2 varchar(10)) engine=memory; drop table t1;