How to view the engine of a mysql database

        In general, mysql provides multiple storage engines by default, which can be viewed by the following methods:

1. Check what storage engine mysql has provided

mysql> show engines;

 

2. View the current default storage engine of mysql

mysql> show variables like '%storage_engine%';

 

3. See what engine a table uses

        In the displayed result, the parameter behind the engine indicates the storage engine currently used by the table.

mysql> show create table 表名;

4. Examples

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326705768&siteId=291194637