Skip to content

Instantly share code, notes, and snippets.

@fabriceleal
Last active February 19, 2016 09:42
Show Gist options
  • Save fabriceleal/5669525 to your computer and use it in GitHub Desktop.
Save fabriceleal/5669525 to your computer and use it in GitHub Desktop.
mysql - usefull stuff with users
-- 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