User Tools

Site Tools


mysql_engines

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mysql_engines [2017/03/07 10:27] – luke7858mysql_engines [2018/03/12 09:56] (current) – luke7858
Line 11: Line 11:
 </sxh> </sxh>
 \\ \\
 +\\
 +=== Find Engines for a specific db (Either InnoDB or MyISAM) ===
 +Replace **__magento__** with your db name and **InnoDB** with your desired engine
 +<sxh bash>
 +select engine,count(*),sum(index_length+data_length)/1024/1024 "Table Engine Size in MB" from information_schema.tables where table_schema = 'magento' and engine = 'InnoDB' group by engine;
 +</sxh>
 \\ \\
 === Find Engine for a Specific Table (Specific Database) === === Find Engine for a Specific Table (Specific Database) ===
Line 27: Line 33:
 === Find a Range of Tables with a Specific Engine === === Find a Range of Tables with a Specific Engine ===
 <sxh bash> <sxh bash>
-select engine, table_name from information_schema.tables where table_schema = 'magento' and table_name like '%xml%' and engine = InnoDB';+select engine, table_name from information_schema.tables where table_schema = 'magento' and table_name like '%xml%' and engine = 'InnoDB';
 </sxh> </sxh>
mysql_engines.1488882478.txt.gz · Last modified: (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki