Created
March 21, 2013 02:09
-
-
Save vmi/5210189 to your computer and use it in GitHub Desktop.
MySQL listing accounts
This file contains hidden or 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
SELECT concat(User, '@', Host) User, Password FROM mysql.user order by host, user; | |
SELECT * FROM information_schema.schema_privileges order by table_schema, grantee, privilege_type; | |
SELECT * FROM information_schema.table_privileges order by table_schema, grantee, table_name, privilege_type; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment