diff --git a/MySQL/README.md b/MySQL/README.md new file mode 100644 index 0000000..5975fbb --- /dev/null +++ b/MySQL/README.md @@ -0,0 +1,19 @@ +# MySQL + +## Query thats show essential information about MySQL tables + +MySQL internal databases/schemas are excluded in `WHERE` statement. + +```sql +SELECT + TABLE_SCHEMA, + TABLE_NAME, + TABLE_TYPE, + ENGINE, + ROW_FORMAT, + TABLE_ROWS +FROM + information_schema.tables +WHERE + TABLE_SCHEMA NOT IN ("performance_schema", "information_schema", "mysql"); +``` diff --git a/README.md b/README.md index dc160b6..503c878 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ * [git](./git/README.md) * [Linux](./linux/README.md) * [Shell commands](./linux/shell_commands.md) +* [MySQL](./MySQL/README.md) * [ODroid](./odroid.md) * [OpenSSL](./OpenSSL.md) * [Python](./Python/README.md)