Difference between revisions of "Users"
From MyWiki
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
grant ALL on <database>.<table> to '<username>'@'<hostname>' identified by '<password>'<br> | grant ALL on <database>.<table> to '<username>'@'<hostname>' identified by '<password>'<br> | ||
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> | ||
+ | DROP USER ‘demo’@‘localhost’;<br> | ||
+ | Change a users password : SET PASSWORD FOR 'user-name-here'@'hostname-name-here' = PASSWORD('new-password-here'); |