MYSQL modifies the storage engine format statements for all tables

  • 2020-05-30 21:11:44
  • OfStack

 
SELECT GROUP_CONCAT(CONCAT( 'ALTER TABLE ' ,TABLE_NAME ,' ENGINE=ARCHIVE; ') SEPARATOR '' ) 
FROM information_schema.TABLES AS t 
WHERE TABLE_SCHEMA = 'userinfo' AND TABLE_TYPE = 'BASE TABLE' 

--  Paste the statement out and execute it;  

Related articles: