Last active
February 19, 2016 09:42
-
-
Save fabriceleal/5669525 to your computer and use it in GitHub Desktop.
mysql - usefull stuff with users
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
-- http://dba.stackexchange.com/questions/13083/cant-remove-grant-usage | |
-- in host, use '%' as wildcard | |
grant usage on *.* to 'user'@'host' identified by 'password'; | |
grant all privileges on database.* to 'user'@'host'; | |
show grants; | |
show grants for user; | |
show grants for user@host; | |
grant super on *.* to 'user'@'host' identified by 'password'; | |
drop user 'user'@'host'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment