Introduction to mysql storage engine

MYSQL supports the following storage engines:

    ARCHIVE (archive): This mode is an engine for data archiving, in which case data rows cannot be modified after they are inserted

    BLACKHOLE (blackhole): The write operation of this engine is to delete data, and the read operation is to return a blank record

    CSV: This engine stores data with commas as separators between data items

    EXAMPLE (example): Example (stub) storage engine

    Falcon: storage engine for transaction processing

    FEDERATED (federated): storage engine used to access remote data tables

    InnoDB: Transaction Engine with Foreign Keys

    MEMORY (memory): a table of things in memory

    MERGE (merge): used to manage data collections composed of multiple MyISAM data tables

    MyISAM: Default Engine

    NDB: MySQL Cluster dedicated storage engine

 If you need to view the storage engine of your own mysql, you can directly enter the command SHOW ENGINES. The following is the information I get when I view my own mysql in cmd mode:

mysql>SHOW ENGINES\G;

*************************** 1. row ***************************
      Engine: MyISAM
     Support: YES
     Comment: Default engine as of MySQL 3.23 with great performance
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 2. row ***************************
      Engine: CSV
     Support: YES
     Comment: CSV storage engine
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 3. row ***************************
      Engine: MRG_MYISAM
     Support: YES
     Comment: Collection of identical MyISAM tables
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 4. row ***************************
      Engine: BLACKHOLE
     Support: YES
     Comment: /dev/null storage engine (anything you write to it disappears)
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 5. row ***************************
      Engine: FEDERATED
     Support: NO
     Comment: Federated MySQL storage engine
Transactions: NULL
          XA: NULL
  Savepoints: NULL
*************************** 6. row ***************************
      Engine: InnoDB
     Support: DEFAULT
     Comment: Supports transactions, row-level locking, and foreign keys
Transactions: YES
          XA: YES
  Savepoints: YES
*************************** 7. row ***************************
      Engine: ARCHIVE
     Support: YES
     Comment: Archive storage engine
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 8. row ***************************
      Engine: MEMORY
     Support: YES
     Comment: Hash based, stored in memory, useful for temporary tables
Transactions: NO
          XA: NO
  Savepoints: NO

 

YES or NO in the Support column means whether the storage engine is available, DISABLED means that the storage engine is available but it is closed, DEFAULT means that it is the default storage engine of the server, in general, the default is available!

The value in the Transaction column indicates whether the storage engine supports transactions, and the value in the XA and Savepoints columns indicates whether the storage engine supports distributed transaction processing and partial transaction rollback.

mysql> SELECT ENGINE FROM INFORMATION_SCHEMA.ENGINES WHERE TRANSACTIONS = 'YES';

+--------+
| ENGINE |
+--------+
| InnoDB |
+--------+

The above statement is the same as SHOW ENGINES, and the result is under MySQL 5.1, and the result under MySQL 6.0 will also include Falcon.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326389042&siteId=291194637