Check the storage engine type of MySQL Data Tables on Linux.

Source: Internet
Author: User

Check the storage engine type of MySQL Data Tables on Linux.

Question: I want to know whether my MySQL database is of the MyISAM or Innodb type. How can I check the MySQL database table type?

MySQl mainly uses two storage engines:MyISAM and Innodb. MyISAM is non-transactional, so it can read faster. However, InnoDB fully supports fine-grained transaction locks such as commit/rollback ). When you create a new MySQL table, you need to select its type, that is, the storage engine ). If no option is selected, you will use the default engine with the pre-configured settings.

If you want to know the type of an existing MySQL DATA table, there are several methods to achieve this.

Method 1

If you can access phpMyAdmin, you can find the default database type from phpMyAdmin. Select a database from phpMyAdmin to view its table list. Under the "Type" column, you will see the data table Type of each table.

Method 2

If you can log on to the MySQL server directly, another method to identify the storage engine is to log on 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 is displayed in 'myDatabase 'database's 'myThe engine type of the table.

Method 3

Another way to check the engine is to use mysqlshow, which is a tool for displaying database information under the command line. Mysqlshow is available in the MySQL client installation package. To use mysqlshow, you must provide the MySQL Server login creden.

The following command displays specific database information. In the "Engine" column, you can see the Engine used by each table.

$ mysqlshow -u 
 -p -i 


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: 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.