Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySql - Convert InnoDB to MyISAM Storage Engine of Database

How to convert database storage engine from InnoDB to MyISAM on MySQL? I found so many sites which convert the storage engine of database table, but not for database. i attached screen shot for better understand

Thanks in advance.

like image 809
Tony Stark Avatar asked Apr 23 '12 12:04

Tony Stark


People also ask

Which is better MyISAM or InnoDB?

In terms of data queries (SELECT), InnoDB is the clear winner, but when it comes to database writes (INSERT and UPDATE), MyISAM is somewhat faster. However, the lower speed of InnoDB is more than compensated for by its transaction protocol.

What is the difference between InnoDB and MyISAM database engine?

InnoDB has row-level locking. MyISAM only has full table-level locking. InnoDB has what is called referential integrity which involves supporting foreign keys (RDBMS) and relationship constraints, MyISAM does not (DMBS). InnoDB supports transactions, which means you can commit and roll back.

What is a major difference between MyISAM and InnoDB storage engines?

The main differences between MyISAM and InnoDB Overall, MyISAM is an older and less efficient storage engine than InnoDB. The most commonly noted differences between these two engines are as follows: InnoDB is more stable, faster, and easier to set up; it also supports transactions.


2 Answers

use this!!

SET storage_engine=MYISAM; ALTER TABLE table_name ENGINE = MyISAM; 

-cheers!!

like image 97
Developer Avatar answered Sep 17 '22 20:09

Developer


ALTER TABLE `table_name` ENGINE=INNODB 
like image 30
Avinash Saini Avatar answered Sep 19 '22 20:09

Avinash Saini