MyISAMMyISAM is a storage engine employed by MySQL database that was used by default prior to MySQL version 5.5 (released in December, 2009). It is based on ISAM (Indexed Sequential Access Method), an indexing algorithm developed by IBM that allows retrieving information from large sets of data in a fast way. Pros and ConsMyISAM is very fast, and provides the best reading speed of all storage engines available in MySQL. However, if your application performs simultaneous reading and writing in one table, the engine′s performance falls down dramatically. This is explained by table-level locking: any time an application inserts data or updates a MyISAM table, all other operations are locked out. Another big critique of MyISAM is the lack of transactions support. Without transactions, you can′t create referential actions, i.e. operations modifying several linked tables at once. For example, say that you have a CUSTOMERS table containing the list of customers, and an ORDERS table containing the list of orders (each order is associated with some customer). The idea of transactions implies that deleting a row in the "parent" table (CUSTOMERS) should delete all rows of the "child" table (ORDERS) that have a matching foreign key, and this operation can′t be stopped in the middle. Transaction-safe storage engines automatically roll back all operations included in a transaction if some of them fail to complete. Handy Backup supports "live" backup and recovery of MyISAM tables that can be done in real time and doesn′t expect you to stop your MySQL server. To learn more, please see the MySQL Backup feature page. Recommended Solution![]() Version 8.4.0, built on June 30, 2022. 113 MB Handy Backup Small ServerTo back up MySQL database with MyISAM-based tables, you need the Small Server edition of our software. Small Server is one of the best backup solutions for small business awarded by PC Mag in 2012. MyISAM and InnoDBSince MySQL 5.5, default storage engine changed to InnoDB. This doesn′t mean that InnoDB is better than MyISAM: as MySQL developers say, this was done because most users never change default settings, and InnoDB is more of general purpose engine. At Handy Backup testing lab, we have done a simple comparative test. When there were no applications using MySQL, MyISAM was almost ten times faster than InnoDB:
Comparison of MyISAM and InnoDB speed on an idle database with an isolated query However, when we put the database under load and the tables started receiving updates, InnoDB showed no significant reduction of speed, but MyISAM slowed down to 0.5 seconds and more. Creating MyISAM Tables in MySQL 5.5 and HigherIn the last versions of MySQL, to create a table with MyISAM as a storage engine you need to add ENGINE=MyISAM to your CREATE TABLE statements, e.g: CREATE TABLE table1 (I INT) ENGINE=MyISAM; Or you can change the default engine back to MyISAM by issuing SET default_storage_engine=MyISAM. Video ExampleIn the following video tutorial you can learn how to back up and restore MySQL databases with Handy Backup. Note: Instructions in this video suggest that you already have Handy Backup installed on your computer. If you still haven′t done so, don′t hesitate to download it. Target Uses of MyISAMAt last, let′s discuss main target uses for the MyISAM storage engine:
Free Download Version 8.4.0, built on June 30, 2022 See also: | Contact UsTerm of the Day
Backup Software GlossaryCurrent glossary explains various terms that you may come across while working with Handy Backup or other backup software. Handy Backup is a backup utility for Windows Servers and PCs that is famous for its flexibility and ease of use. The glossary contains 140 terms. The current section Databases contains 17 terms. Other “Databases” Terms
|