Features of InnoDB storage engine
Since MySQL 5.1, the default storage engine has become the InnoDB storage engine. Compared with MyISAM, the InnoDB storage engine has undergone major changes. Its main features are:
(Recommended learning: mysql tutorial)
supports transaction operations and has transaction ACID isolation features. The default isolation level is repeatable-read (repetable- read), implemented through MVCC (Concurrent Version Control). Ability to solve dirty read and non-repeatable read problems.
InnoDB supports foreign key operations.
InnoDB's default lock granularity row-level lock has better concurrency performance, but deadlock may occur.
Like MyISAM, the InnoDB storage engine also has .frm file storage table structure definitions, but the difference is that InnoDB's table data and index data are stored together, both in On the leaf nodes of the B number, the table data and index data of MyISAM are separated.
InnoDB has a secure log file. This log file is used to recover data loss caused by database crash or other situations and ensure data consistency.
InnoDB and MyISAM support the same index types, but the specific implementation is very different due to different file structures.
In terms of performance of add, delete, modify and query, if a large number of add, delete, and modify operations are performed, it is recommended to use the InnoDB storage engine. It deletes rows during deletion operations and does not rebuild the table.
The above is the detailed content of Features of InnoDB storage engine. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



InnoDB is one of the database engines of MySQL. It is now the default storage engine of MySQL and one of the standards for binary releases by MySQL AB. InnoDB adopts a dual-track authorization system, one is GPL authorization and the other is proprietary software authorization. InnoDB is the preferred engine for transactional databases and supports transaction security tables (ACID); InnoDB supports row-level locks, which can support concurrency to the greatest extent. Row-level locks are implemented by the storage engine layer.

Choosing the appropriate storage structure using the MySQL storage engine When using the MySQL database, choosing the appropriate storage engine is crucial. Different storage engines have different characteristics and applicable scenarios. Choosing a suitable storage engine can improve database performance and efficiency. This article will introduce several common storage engines in MySQL and give corresponding code examples. InnoDB engine The InnoDB engine is MySQL's default storage engine, which has transaction support and ACID features. It is suitable for handling high-concurrency applications

MySQL is a powerful open source relational database that can be used in applications of all sizes. MySQL supports a variety of different storage engines, such as MyISAM, InnoDB, Memory, CSV, etc. Different engines have different functions and performance characteristics. When optimizing the underlying MySQL, the choice of storage engine is a very important step. This article will discuss how to choose a storage engine suitable for your project and how to compare performance. 1. MyISAM storage engine MyIS

Efficient storage and high-speed reading: MySQL tips and strategies for using the Aria engine Introduction: As a commonly used relational database management system, MySQL provides a variety of storage engines for users to choose from. Among them, the Aria engine is a storage engine that supports transactions and concurrent read and write operations, and has efficient storage and high-speed reading characteristics. This article will introduce several techniques and strategies for using the Aria engine to improve MySQL storage and reading performance, and provide corresponding code examples. Basic usage of Aria engine in MyS

InnoDB is a storage engine that stores data in tables on disk, so our data will still exist even after shutdown and restart. The actual process of processing data occurs in memory, so the data in the disk needs to be loaded into the memory. If it is processing a write or modification request, the contents in the memory also need to be refreshed to the disk. And we know that the speed of reading and writing to disk is very slow, which is several orders of magnitude different from reading and writing in memory. So when we want to get certain records from the table, does the InnoDB storage engine need to read the records from the disk one by one? The method adopted by InnoDB is to divide the data into several pages, and use pages as the basic unit of interaction between disk and memory. The size of a page in InnoDB is generally 16

MySQL can change the storage engine of a table by specifying the storage engine when creating the table, using the ALTER TABLE statement to modify the storage engine, modifying the MySQL configuration file, and using the storage engine conversion tool. Detailed introduction: 1. Specify the storage engine when creating a table. When creating a table, you can change the default storage engine of the table by specifying the storage engine. By using the ENGINE keyword and specifying the storage engine name in the CREATE TABLE statement, you can change the table's default storage engine. The storage engine is set to InnoDB and so on.

1. Roll back and reinstall mysql. In order to avoid the trouble of importing this data from other places, first make a backup of the database file of the current library (/var/lib/mysql/location). Next, I uninstalled the Perconaserver 5.7 package, reinstalled the original 5.1.71 package, started the mysql service, and it prompted Unknown/unsupportedtabletype:innodb and could not start normally. 11050912:04:27InnoDB:Initializingbufferpool,size=384.0M11050912:04:27InnoDB:Complete

MySQL storage engine selection comparison: InnoDB, MyISAM and Memory performance index evaluation Introduction: In the MySQL database, the choice of storage engine plays a vital role in system performance and data integrity. MySQL provides a variety of storage engines, the most commonly used engines include InnoDB, MyISAM and Memory. This article will evaluate the performance indicators of these three storage engines and compare them through code examples. 1. InnoDB engine InnoDB is My
