Is there a way to not do this automatically for all tables instead of manually? It takes too long if there are too many tables.
1 Answers
Best Answer
With this you can get phpMyAdmin to list all tables with the sql command.
SELECT concat('alter table`',TABLE_NAME,'` engine=innodb;') FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '[REPLACE WITH CORRECT DB NAME]' AND ENGINE = 'MyISAM';
Steps:
- Go into phpmyadmin and select database
- Go to SQL, run command above
- Select “Show full text”, and “Show all”
- Copy all row and the text
- Go to SQL again and paste these commands
- Run
All tables are now in InnoDB!