MySQL technology insider-InnoDB Storage engine-Reading Notes (2), mysql-innodbMySQL technology insider-InnoDB Storage engine-Reading Notes (2)
Mysql is always indispensable for php development.
Series blog link
MySQL technology insider-InnoDB Storage engine-Reading Notes (1), mysql-innodbMySQL technology insider-InnoDB Storage engine-Reading Notes (1)
Mysql is always indispensable for php development.
Blog link
Some time ago, when I encountered such a problem, one day I suddenly encountered #2013-Lost connection to MySQL server at 'reading initial communication packet 'during database backup ',System error: 0Pay attention to the red part. Different error
MySQLLock Mechanism of common storage engines
MyISAMAndMemoryTable-Level Lock (Table-level locking)
BdbUse the page lock (Page-Leve locking) Or table-Level Lock. The default value is page lock.
InnoDBSupports row-level locks (Row-level locking)
(I) principle:
As long as the index field defined by the user contains the field in the primary key, this field will not be automatically added to the index by InnoDB.
However, if the index field does not fully contain the primary key field, InnoDB
Document directory
Storage Engine
MyISAM
InnoDB
Comparison
Demo-matrix
2008.06.14
Most people who use MySQL know that MyISAM and InnoDB areThe two most-common database engines available with the popularOpen-source database provider. I
1. Full table Scan
If you want to find a highly selective record, you can use an index. However, if you find a large amount of data, such as more than 20%,
The optimizer does not use indexes, but scans the entire table.
2. Sequential read: it
Introduction:
InnoDB provides MySQL with a transaction security (acid-compatible) storage engine with the capabilities of commit, rollback, and crash recovery. InnoDB locks row-level and also provides an oracle-style non-locked read in the SELECT
Question: Why is transaction introduced?
1>.Data Integrity
2>.Data security
3>.Make full use of system resources to improve the system's concurrent processing capability
1.Transaction Features
Transactions have four features: Atomiocity, Consistency,
MyISAM tables emphasize performance, and the execution speed is faster than that of InnoDB, but transactions are not supported. InnoDB provides advanced database functions such as external keys for transactions.
MyIASM is a new version of the
Cascade:Deletes or updates matched rows from the parent table and automatically deletes or updates the child table. On Delete cascade and on update cascade are both available. Between two tables, you should not define several on update cascade
In MySQL, indexes are implemented in the storage engine, so the indexes in each storage engine are implemented differently. This section is mainly about learning the most common index types in the InnoDB storage Engine: Clustered index and B-tree
INNODB provides MySQL with transaction security (acid-compatible) storage engine with Commit, rollback, and crash recovery capabilities. InnoDB locks the row level and also provides an oracle-consistent, unlocked read in the SELECT statement. These
Introduction: Why the introduction of transactions?
1>. Data Integrity
2>. Data Security
3>. Make full use of system resources to improve the ability of system concurrent processing
1. characteristics of the transaction
Transactions have four
Tables of the MyISAM type emphasize performance, which executes more than INNODB types faster, but does not provide transactional support, while InnoDB provides transactional support for advanced database features such as foreign keys.
Myiasm is a
The three features of the InnoDB storage engine are very exciting, they are insert buffers, two writes, and adaptive hashes, and this article introduces the first feature-insertion buffer (insert buffer)
In the previous "MySQL-talking about InnoDB
One notable feature of MySQL is its pluggable storage engine, so the MySQL file is divided into two types: one is the MySQL server itself files (mainly some log files, such as error log, binary log, etc.), all the storage engine sharing, and the
INNODB provides MySQL with transaction security (acid-compatible) storage engine with Commit, rollback, and crash recovery capabilities. InnoDB locks the row level and also provides an oracle-consistent, unlocked read in the SELECT statement. These
As we know, there are four transaction isolation levels in the relational database standard:
Uncommitted read (READ UNCOMMITTED): Allow dirty reads, that is, data that may be read to uncommitted transaction modifications in other sessions
Commit
This article comes from NetEase cloud community.InnoDB is the most common storage engine for MySQL, and understanding the index of the InnoDB storage engine is of great benefit to daily work, and the index exists to speed up the retrieval of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.