Home >Database >Mysql Tutorial >How Can I Check the Storage Engine Used by a MySQL Table?

How Can I Check the Storage Engine Used by a MySQL Table?

Patricia Arquette
Patricia ArquetteOriginal
2024-11-13 17:20:02474browse

How Can I Check the Storage Engine Used by a MySQL Table?

Retrieving MySQL Table Engine Types

Your MySQL database may contain tables utilizing various storage engines, such as MyISAM and InnoDB. To determine engine types assigned to specific tables, utilize the following query:

Query:

SHOW TABLE STATUS WHERE Name = 'table_name'

where 'table_name' is the name of the table you wish to inspect.

Output:

Upon executing this query, you will obtain a detailed result set pertaining to the table's attributes. The "Engine" column within the results will specify the storage engine currently employed for that table.

The above is the detailed content of How Can I Check the Storage Engine Used by a MySQL Table?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn