SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'dbname' AND engine = 'MyISAM';
Where dbname - database name
And InnoDB - engine, you can use InnoDB
Convert MyISAM tables to InnoDB
SELECT CONCAT('ALTER TABLE ', TABLE_SCHEMA, '.', TABLE_NAME,' ENGINE=InnoDB;')
FROM Information_schema.TABLES WHERE TABLE_SCHEMA = 'DBNAME' AND ENGINE = 'MyISAM' AND TABLE_TYPE = 'BASE TABLE'
Then run result as SQL query
For example:
ALTER TABLE databasename.tablename ENGINE=InnoDB;
No comments:
Post a Comment