The type of storage engine that checks MySQL data tables on Linux kick

Source: Internet
Author: User
Tags mysql client phpmyadmin

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.