Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show tables by engine in MySQL

How would I show all tables in MySQL with a given engine, e.g. InnoDB, MyISAM, FEDERATED?

like image 499
Kit Peters Avatar asked Nov 11 '09 21:11

Kit Peters


People also ask

How do I get a list of tables in MySQL workbench?

Inside the workbench right click the table in question and click "Select Rows - Limit 1000." It's the first option in the pop-up menu. Show activity on this post. To get the convenient list of tables on the left panel below each database you have to click the tiny icon on the top right of the left panel.

How do I visualize a table in MySQL workbench?

To open, right-click a table in the object browser of the Navigator pane and choose Table Inspector from the context menu. The Table Inspector shows information related to the table.

How do I check my engine storage?

Add default-storage-engine=InnoDB in [mysqld] section of the my. cnf file for the default engine to be active. Use the 'show create table table_name' command to view default engine in the table.


2 Answers

Use INFORMATION_SCHEMA.TABLES table:

SELECT table_name FROM INFORMATION_SCHEMA.TABLES   WHERE engine = 'InnoDB' 
like image 95
ChssPly76 Avatar answered Sep 21 '22 12:09

ChssPly76


If you want the results from a single database

SELECT TABLE_NAME FROM information_schema.TABLES     WHERE TABLE_SCHEMA = 'dbname' AND engine = 'InnoDB'; 
like image 39
Alvin Avatar answered Sep 21 '22 12:09

Alvin