EN
MySQL - how to check existing table engine? (HeidiSQL example)
0 points
In this article, we would like to show you how to check the existing table engine in MySQL.
Quick solution:
xxxxxxxxxx
1
SHOW TABLE STATUS WHERE NAME = 'table_name';
To show how to check the existing table engine, we will use the following table:

Note:
At the end of this article you can find database preparation SQL queries.
In this example, we will use a query to check our users
table engine.
Query:
xxxxxxxxxx
1
SHOW TABLE STATUS WHERE NAME = 'users';
Result:

In this example, we will show you how to check users
table engine in HeidiSQL.
Step 1: Expand your database and right-click on the table. Then choose Maintenance.

Step 2: Choose Bulk table editor and you will see the table engine right below your database name. In our case, it's InnoDB engine.

create_tables.sql
file:
xxxxxxxxxx
1
CREATE TABLE `users` (
2
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
3
`name` VARCHAR(50) NOT NULL,
4
`surname` VARCHAR(50) NOT NULL,
5
`salary` DECIMAL(15,2) NOT NULL,
6
PRIMARY KEY (`id`)
7
);
insert_data.sql
file:
xxxxxxxxxx
1
INSERT INTO `users`
2
( `name`, `surname`, `salary`)
3
VALUES
4
('John', 'Stewart', '3512.00'),
5
('Chris', 'Brown', '1344.00'),
6
('Kate', 'Lewis', '6574.00'),
7
('Ailisa', 'Gomez', '6500.00'),
8
('Gwendolyn', 'James', '4200.00'),
9
('Simon', 'Collins', '3320.00'),
10
('Taylor', 'Martin', '1500.00'),
11
('Andrew', 'Thompson', '2100.00');