MySQL - InnoDB 簡介
MySQL 5.0 之後的版本支援的儲存引擎包括 MyISAM, InnoDB, MEMORY, CSV …等
其中 InnoDB 屬於交易安全表(支持交易,行級鎖定,外鍵和表加密)
MyISAM、MEMORY、CSV則屬於非交易安全表。
將目前支援的儲存引擎列出來,就能看到個引擎的支援狀況:
> SHOW ENGINES \G
...
*************************** 2. row ***************************
Engine: InnoDB
Support: DEFAULT
Comment: Percona-XtraDB, Supports transactions, row-level locking, foreign keys and encryption for tables
Transactions: YES
XA: YES
Savepoints: YES
*************************** 3. row ***************************
Engine: MEMORY
Support: YES
Comment: Hash based, stored in memory, useful for temporary tables
Transactions: NO
XA: NO
Savepoints: NO
*************************** 4. row ***************************
Engine: MyISAM
Support: YES
Comment: MyISAM storage engine
Transactions: NO
XA: NO
Savepoints: NO
...
8 rows in set (0.00 sec)
在 MySQL 5.5 之前,預設的儲存引擎是 MyISAM
Continue Reading