I have a MariaDb database which consists of 2 tables and which is around 10Gb of the size. One is dependendant on the other via a foreign key.
How can I change the engine type of that particular db from InnoDb to MyISAM?
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It only takes a minute to sign up.
Sign up to join this communityI have a MariaDb database which consists of 2 tables and which is around 10Gb of the size. One is dependendant on the other via a foreign key.
How can I change the engine type of that particular db from InnoDb to MyISAM?
To simply answer your question, I would turn off foreign key checks and unique checks, then convert it
SET FOREIGN_KEY_CHECKS = 0;
SET UNIQUE_CHECKS = 0;
ALTER TABLE tblname ENGINE=MyISAM;
You should remove the foreign key afterwards.
Why you do want to change it to MyISAM is another story.
Aria
as an alternative that has crash safety. What are you hoping to achieve with these changes?