InnoBD转MyISAMSET@DATABASE_NAME='数据库名称';SELECTCONCAT('ALTERTABLE`',table_name,'`ENGINE=MyISAM;')ASsql_statementsFROMinformation_schema.tablesAStbWHEREtable_schema=@DATABASE_NAMEAND`ENGINE`='InnoDB'AND`TABLE_TYPE`='BASETABLE'ORDERBYtable_nameDESC;MyISAM转InnoBDSET@DATABASE_NAME='数据库名称';SELECTCONCAT('AL