
Use InnoDB. It is the default engine of the MariaDB that runs on our hosting, it copes better with failures and simultaneous writes, and it is what current applications expect. MyISAM is an older engine that still turns up in databases created many years ago. If you find MyISAM tables in your site, in most cases they are worth moving to InnoDB.
What each engine does differently
| Feature | InnoDB | MyISAM |
| Transactions | Yes: a group of changes is saved all or nothing. | No. |
| Locking on write | Per row: several writes at the same time. | Whole table: one write makes the others wait. |
| Foreign keys | Yes. | No. |
| After a failure | Recovers by itself, from its internal log. | The table may be left marked as damaged and need repair. See a table marked as crashed. |
| Text search (FULLTEXT) | Yes, in current versions. | Yes. |
| Size on disk | Tends to take more. | Tends to take less. |
MyISAM has one small advantage: counting all the rows in a table, with no condition, is instant. It is rare for that to decide anything on a website.
Seeing which engine each table has
|
|
|
Moving a table to InnoDB
|
|
|
|
| Convert table by table, not all at once, and never without a copy. On a very large database the conversion can exhaust the connection time or take too much space in the account. If you see “MySQL server has gone away” halfway, see the causes, in order of likelihood. |
| A recent WordPress database is born as InnoDB. It is only worth checking if the site is old, came from another provider or was created by a very old program. If you want to take the chance to lighten the database, see cleaning and optimising the database in phpMyAdmin. |
|
Have old tables and do not want to risk the conversion? Tell us the database and we will go through it with you. Open a support ticket |
|
SEE ALSO A table marked as crashed: what it means and how to repair it Creating databases and using phpMyAdmin |
RECOMMENDED PRODUCT Web hosting with cPanel Domain and SSL included, daily backups and the panel you already know. from $6.59/mo (3-year plan, with coupon) See plans |
- 0 Users Found This Useful











