首頁 >資料庫 >mysql教程 >什麼是儲存引擎以及如何查看MySQL安裝支援的儲存引擎清單?

什麼是儲存引擎以及如何查看MySQL安裝支援的儲存引擎清單?

WBOY
WBOY轉載
2023-09-11 20:33:091385瀏覽

什麼是儲存引擎以及如何查看MySQL安裝支援的儲存引擎清單?

它可以被定義為資料庫管理系統(DBMS)用來處理不同的SQL操作(如建立、讀取、更新和刪除資料庫中的資料)的軟體組件。換句話說,它被DBMS用來管理資料庫中的資訊。最常用的儲存引擎是InnoDB,它也是MySQL5.5及更高版本的預設儲存引擎。在MySQL5.5之前,預設的儲存引擎是MyISAM。

透過使用SHOW ENGINES指令,我們可以檢查MySQL安裝支援的儲存引擎清單−

mysql> SHOW ENGINES\G
*************************** 1. row ***************************
      Engine: FEDERATED
     Support: NO
     Comment: Federated MySQL storage engine
Transactions: NULL
          XA: NULL
  Savepoints: NULL
*************************** 2. row ***************************
      Engine: MRG_MYISAM
     Support: YES
     Comment: Collection of identical MyISAM tables
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 3. row ***************************
      Engine: MyISAM
     Support: YES
     Comment: MyISAM storage engine
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 4. row ***************************
      Engine: BLACKHOLE
     Support: YES
     Comment: /dev/null storage engine (anything you write to it disappear
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 5. row ***************************
      Engine: CSV
     Support: YES
     Comment: CSV storage engine
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 6. row ***************************
      Engine: MEMORY
     Support: YES
     Comment: Hash based, stored in memory, useful for temporary tables
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 7. row ***************************
      Engine: ARCHIVE
     Support: YES
     Comment: Archive storage engine
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 8. row ***************************
      Engine: InnoDB
     Support: DEFAULT
     Comment: Supports transactions, row-level locking, and foreign keys
Transactions: YES
          XA: YES
  Savepoints: YES
*************************** 9. row ***************************
      Engine: PERFORMANCE_SCHEMA
     Support: YES
     Comment: Performance Schema
Transactions: NO
          XA: NO
  Savepoints: NO
9 rows in set (0.00 sec)

以上是什麼是儲存引擎以及如何查看MySQL安裝支援的儲存引擎清單?的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文轉載於:tutorialspoint.com。如有侵權,請聯絡admin@php.cn刪除