MySQL mainly uses two kinds of storage engines: MyISAM and Innodb. MyISAM is non-transactional and therefore has read faster, however InnoDB fully supports fine grained transaction locking (e.g. Commit/rollback). When you create a new MySQL table, you select its type (that is, the storage engine). If you do not have a selection, you will use the default engine with the preset settings. |
If you want to know the type of MySQL data table that already exists, here are a few ways to achieve it.
650) this.width=650; "src=" Http://www.linuxprobe.com/wp-content/uploads/2017/07/linux-check-mysql-01.jpg "alt=" The storage engine type for checking MySQL data tables on Linux kick Linux check MySQL data table storage Engine type kick "width=" "height=" "class=" Alignnone size-full wp-image-77649 "title=" linux check MySQL data table storage Engine type kick Linux check MySQL data table storage Engine type kick "style=" vertical-align:middle;height : auto;margin:10px auto; "/>
Method One
If you can access phpMyAdmin, you can find the default database type from phpMyAdmin. Select a database from phpMyAdmin to view its list of tables. Below the "type" column, you will see the data table type for each table.
650) this.width=650; "src=" Http://www.linuxprobe.com/wp-content/uploads/2017/07/linux-check-mysql-02.jpg "alt=" Linux check MySQL data table storage Engine type kick Linux check MySQL data table storage Engine type kick "width=" 640 "height=" 338 "class=" Alignnone size-full wp-image-77650 "title=" linux check MySQL data table storage Engine type kick Linux check MySQL data table storage Engine type kick "style=" vertical-align:middle;height : auto;margin:10px auto; "/>
Method Two
If you can log in directly to the MySQL server, another way to identify the storage engine is to log in to the MySQL server and run the following MySQL command:
Mysql> SELECT ENGINE from INFORMATION_SCHEMA. TABLES WHERE table_schema = ' my_database ' and table_name = ' my_table ';
The above command displays the engine type of the ' mytable ' table in the ' MyDatabase ' database.
Method Three
Another way to check the engine is to use Mysqlshow, which is a command-line tool for displaying database information. Mysqlshow is available in the MySQL client installation package. To use mysqlshow, you need to provide the MySQL server login credentials.
The following command displays the specific database information. Below the "Engine" column, you can see the engines used by each table.
$ mysqlshow-u-p-i
650) this.width=650; "src=" Http://www.linuxprobe.com/wp-content/uploads/2017/07/linux-check-mysql-03.jpg "alt=" Linux check MySQL data table storage Engine type kick Linux check MySQL data table storage Engine type kick "width=" 640 "height=" 343 "class=" Alignnone size-full wp-image-77651 "title=" linux check MySQL data table storage Engine type kick Linux check MySQL data table storage Engine type kick "style=" vertical-align:middle;height : auto;margin:10px auto; "/>
The type of storage engine that checks MySQL data tables on Linux kick