Linux Service Chapter VII: MySQL master-slave principle and architecture configuration

Source: Internet
Author: User
Tags types of tables

Linux Service Chapter VII: MySQL engine understanding, master-Slave principle and architecture configuration

One,MySQL engine understand

MyISAM engine

The default table type, which is based on the traditional ISAM type, ISAM is an abbreviation for indexedsequential access method (indexed sequential access methods). It is a standard way to store records and files. Not transactional security, and foreign keys are not supported, and if you perform a large number of select, MyISAM is more appropriate.

InnoDB engine

A transaction-safe engine that supports foreign keys, row locks, and transactions is his greatest feature. InnoDB was originally developed by Innobase Oy Company, which was acquired by Oracle in October 2005 and is currently licensed under dual license, one licensed under the GPL and one commercially licensed. If you have a large number of update and insert, it is recommended to use InnoDB, especially for multiple concurrency and high QPS scenarios.

Generally speaking:

InnoDB and MyISAM are the two most common table types used in MySQL, each with its pros and cons, depending on the application.

The basic differences are:

1.MyISAM types do not support advanced processing, such as transactional processing, and InnoDB type support .

2. MyISAM types of tables emphasize performance, which is performed more quickly than the InnoDB type , but does not provide transactional support , while InnoDB provides transactional support for advanced database functions such as external keys.

3, MyI SAM fit Hopewell: (1) Do a lot of Count calculation , (2) insert infrequently, query very frequently ; (3) No business .

4,InnoDB suitable: (1) reliability requirements are relatively high , or require transactions, (2) table updates and queries are fairly frequent , and table locking opportunities are relatively large .

View the Database engine

In general, MySQL will provide a variety of storage engines by default, which can be viewed through the following:

1. See what storage is now available for MySQL engine : mysql> Show Engines


This article from "Bershir-system operation and Maintenance" blog, reproduced please contact the author!

Linux Service Chapter VII: MySQL master-slave principle and architecture configuration

Related Article

Contact Us

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: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.