Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to check the storage engine type of MySQL data tables on Linux

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "how to check the storage engine type of MySQL data tables on Linux". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to check the storage engine type of MySQL data tables on Linux.

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

MySQl mainly uses two storage engines: MyISAM and Innodb. MyISAM is non-transactional, so it is faster to read, while InnoDB fully supports fine-grained transaction locking (such as commit/rollback). When you create a new MySQL table, you choose its type (that is, the storage engine). If there is no choice, you will use the default engine with the preset.

If you want to know the types of MySQL tables that already exist, there are several ways to do so.

Method one

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

Method two

If you can log in to the MySQL server directly, 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, a tool that displays database information on the command line. Mysqlshow is available in the MySQL client installation package. To use mysqlshow, you need to provide login credentials for the MySQL server.

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

$mysqlshow-umurp-I

At this point, I believe you have a deeper understanding of "how to check the storage engine type of MySQL data tables on Linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report