Difference between revisions of "Users"
From MyWiki
(One intermediate revision by the same user not shown) | |||
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’;<br> | ||
+ | Change a users password : SET PASSWORD FOR 'user-name-here'@'hostname-name-here' = PASSWORD('new-password-here'); |