
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
How do I know if a MySQL table is using myISAM or InnoDB Engine?
To know a MySQL table is using MyISAM or InnoDB engine, you can use the command show status table. The syntax is as follows −
SHOW TABLE STATUS from yourDatabaseName LIKE ‘yourTableName’.
The above syntax tells about the specific table engine. Now you can apply the above syntax to know whether the MySQL table engine is using MyISAM or InnoDB.
Here, I have database ‘business’ and table ‘student’. The query is as follows −
mysql> show table status from business like 'student';
The following displays the engine our table ‘student’ is using −
+---------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+--------------------+----------+----------------+---------+ | Name | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time | Update_time | Check_time | Collation | Checksum | Create_options | Comment | +---------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+--------------------+----------+----------------+---------+ | student | InnoDB | 10 | Dynamic | 2 | 8192 | 16384 | 0 | 32768 | 0 | NULL | 2018-10-01 12:26:57 | NULL | NULL | utf8mb4_unicode_ci | NULL | | | +---------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+--------------------+----------+----------------+---------+ 1 row in set (0.09 sec)
To know the engine type of all the tables, you can use the following syntax −
SHOW TABLE STATUS FROM yourDatabaseName;
Apply the above syntax in the following query −
mysql> show table status from business;
The following is the output that displays all the engines −
- Related Articles
- MySQL - changing table engine from innoDB to MyISAM?
- How to convert MyISAM to InnoDB storage engine in MySQL?
- How to create a MySQL table with MyISAM engine table?
- How to create a MySQL table with InnoDB engine table?
- Converting table from MyISAM to INNODB in MySQL?
- MyISAM versus InnoDB in MySQL?
- While creating a MySQL table, how can I specify the storage engine of my choice rather than using the default storage engine InnoDB?
- Can I use InnoDB and MyISAM tables in a single database in MySQL?
- How can I install or enable innoDB in MySQL?
- When to use MyISAM and InnoDB?
- How Do I Know if I Have Herpes or Something Else?
- How to display all tables in MySQL with InnoDB storage engine?
- How do I detect if a table exist in MySQL?
- How can I change the storage engine of a MySQL table?
- How do I check if a column is empty or null in MySQL?

Advertisements