Difference between revisions of "Users"

From MyWiki
Jump to: navigation, search
Line 2: Line 2:
 
GRANT [type of permission] ON [database name].[table name] TO ‘[username]’@'localhost’;<br>
 
GRANT [type of permission] ON [database name].[table name] TO ‘[username]’@'localhost’;<br>
 
REVOKE [type of permission] ON [database name].[table name] FROM ‘[username]’@‘localhost’;<br>
 
REVOKE [type of permission] ON [database name].[table name] FROM ‘[username]’@‘localhost’;<br>
 +
DROP USER ‘demo’@‘localhost’;

Revision as of 14:03, 18 September 2014

grant ALL on <database>. to '<username>'@'<hostname>' identified by '<password>'
GRANT [type of permission] ON [database name].[table name] TO ‘[username]’@'localhost’;
REVOKE [type of permission] ON [database name].[table name] FROM ‘[username]’@‘localhost’;
DROP USER ‘demo’@‘localhost’;