1、檢視mysql提供的引擎。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<code>MariaDB [(none)]> show engines;</code>
<code>+--------------------+---------+----------------------------------------------------------------------------+--------------+------+------------+</code>
<code>| Engine | Support | Comment | Transactions | XA | Savepoints |</code>
<code>| CSV | YES | CSV storage engine | NO | NO | NO |</code>
<code>| MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |</code>
<code>| MEMORY | YES | Hash based, stored </code><code>in</code> <code>memory, useful </code><code>for</code> <code>temporary tables | NO | NO | NO |</code>
<code>| BLACKHOLE | YES | </code><code>/dev/null</code> <code>storage engine (anything you write to it disappears) | NO | NO | NO |</code>
<code>| MyISAM | YES | MyISAM storage engine | NO | NO | NO |</code>
<code>| InnoDB | DEFAULT | Percona-XtraDB, Supports transactions, row-level locking, and foreign keys | YES | YES | YES |</code>
<code>| ARCHIVE | YES | Archive storage engine | NO | NO | NO |</code>
<code>| FEDERATED | YES | FederatedX pluggable storage engine | YES | NO | YES |</code>
<code>| PERFORMANCE_SCHEMA | YES | Performance Schema | NO | NO | NO |</code>
<code>| Aria | YES | Crash-safe tables with MyISAM heritage | NO | NO | NO |</code>
<code>10 rows </code><code>in</code> <code>set</code> <code>(0.00 sec)</code>
2、檢視mysql預設的引擎。
<code>MariaDB [(none)]> show variables like </code><code>'%storage_engine%'</code><code>;</code>
<code>+------------------------+--------+</code>
<code>| Variable_name | Value |</code>
<code>| default_storage_engine | InnoDB |</code>
<code>| storage_engine | InnoDB |</code>
<code>2 rows </code><code>in</code> <code>set</code> <code>(0.00 sec)</code>
3、檢視某個表的引擎。
<code>MariaDB [(none)]> show create table 表名;</code>
本文轉自 sailikung 51CTO部落格,原文連結:http://blog.51cto.com/net881004/2067704,如需轉載請自行聯系原作者