MySQL Archive storage engine and mysqlarchive StorageIntroduction
From the explanation of archive words, we can understand the purpose of this storage engine. This storage engine is basically used for data archiving. It has a very high compression
MySQL has a number of storage engines, for different applications, you can choose the appropriate storage engine for each table, which helps improve MySQL performance.To create a news statement:
Copy Code code as follows:
CREATE TABLE
MySQL as the most commonly used database, often encountered a variety of problems. What we're going to say today is the changes to the table storage engine. There are three ways, the list is as follows.
1. True connection modification. It is slower
In a previous article on MySQL architecture, it was mentioned that MySQL's biggest feature is its pluggable plug-in storage engine, which contrasts several major storage engines. In particular, MySQL is open source, so if you're not satisfied with
MySQL Storage engineAvailable as pluggable components:-Responsible for performing the actual data I/O operations for the database, different storage engines, and the way they store the data.-The user accesses the MySQL database via a connection and
Using the external health foreign keyForeign key (current table field name) References table name (field name in Table name) on UPDATE cascade on DELETE Cascade Engine=innodb;Foreign Health The current table refers to another table name. Synchronize
MySQL has a variety of storage engines, each of which has its own advantages and disadvantages, and can be chosen with merit:MyISAM, InnoDB, MERGE, MEMORY (HEAP), BDB (BerkeleyDB), EXAMPLE, Federated, ARCHIVE, CSV, Blackhole.MySQL's storage engine
First, the Engine foundation1 Viewing system-supported storage engines Show engines;2 View the storage engine used by the table in two ways:A, Show table status from database_name where name= ' table_name ';b, show create TABLE table_name;To view
What is the storage engineFor example, if you are working on a large amount of temporary data, you may need to use a memory storage engine. The memory storage engine can store all the tabular data in memory. Alternatively, you might need a database
MySQL has two storage engines: InnoDB and MyISAM, and the following table is a simple comparison of the two engines
MyISAM
InnoDB
The difference in composition:
Each myisam is stored as three files on disk.
MySQL has two storage engines: InnoDB and MyISAM, and the following table is a simple comparison of the two engines
MyISAM
InnoDB
The difference in composition:
Each myisam is stored as three files on disk.
3.1 Overview:1,myisam is the default engine of the previous version of MySQL 5.5, and after 5.5 The default storage engine is InnoDB2. Check the MySQL storage Engine command, and enter show engines at the mysql> prompt; Field support is: Default
Mysql uses a plug-in storage engineMysql ArchitectureMySQL service layerStorage Engine LayerAll belong to the storage engineMyISAM Storage EngineThe frm is a record structure, myd and MYI are MyISAM special.CasesTable-level locks, which require a
Features of several common storage enginesHere we focus on several common storage engines and compare the differences and recommended usage between each storage engine.
features
Myisam
BDB
Memory
InnoDB
MySQL's physical file composition includes error logs, query logs, slow query logs, transaction logs, and binary logs.Log files record the changes that occurred during the MySQL database operation, log the client connection status of the MySQL
InnoDb architecture and features (Innodb storage engine reading notes) background thread
Master Thread
The core background thread is responsible for asynchronously refreshing the data in the buffer pool to the disk. For example, refresh dirty
Reference a section in the MySQL official document: the MERGE storage engine, also known as the MRG_MyISAM engine, is a set of identical MyISAM tables that can be used as one.
Reference a section in the MySQL official document: the MERGE storage
Different from most databases, mysql has a storage engine. For different needs, you can select the storage engine that best suits you. How many storage engines are there in mysql, what are their advantages and disadvantages,
The mysql tutorial is
To be a qualified programmer, in addition to writing beautiful code, it is also indispensable to be familiar with the database. The following summarizes how to view and modify the MySQL database table storage engine: to be a qualified programmer, in
1. modify the ENGINE (storage ENGINE) type of a single table (1) select one of the created PowerDesigner tables. The premise is that this table has been selected as a database of Mysql50. (2) right-click "attribute", (3) Select "PhsicalOption",
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.