Created
February 24, 2019 00:33
-
-
Save stilliard/f496a86b22e29c9607af7b3ad8301361 to your computer and use it in GitHub Desktop.
Check all database's tables to see if keys are disabled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Will print database name & tables that have keys disabled | |
SELECT TABLE_SCHEMA, TABLE_NAME | |
FROM information_schema.STATISTICS | |
WHERE comment = 'disabled' | |
GROUP BY TABLE_SCHEMA, TABLE_NAME; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment