MariaDB/SQL/GRANT: Difference between revisions
from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
*** <code>USAGE</code> | *** <code>USAGE</code> | ||
*** <code>ALL</code> [<code>PRIVILEGES</code>] | *** <code>ALL</code> [<code>PRIVILEGES</code>] | ||
** '''{{fmt/arg|object type}}''': ''one of –'' | ** '''{{fmt/arg|object type}}''': ''one of –'' | ||
*** <code>TABLE</code> | *** <code>TABLE</code> | ||
| Line 25: | Line 24: | ||
*** {{fmt/arg|username}} {{fmt/arg/opt|authentication option}} | *** {{fmt/arg|username}} {{fmt/arg/opt|authentication option}} | ||
*** <code>PUBLIC</code> | *** <code>PUBLIC</code> | ||
** '''{{fmt/arg | ** '''{{fmt/arg|authentication option}}''': ''one of –'' | ||
*** <code>IDENTIFIED BY</code> '{{fmt/arg|password}}' | *** <code>IDENTIFIED BY</code> '{{fmt/arg|password}}' | ||
*** <code>IDENTIFIED BY PASSWORD</code> 'password_hash' | *** <code>IDENTIFIED BY PASSWORD</code> 'password_hash' | ||
*** <code>IDENTIFIED</code> {<code>VIA</code>|<code>WITH</code>} {{fmt/arg|authentication rule}} [OR ''repeat...''] | *** <code>IDENTIFIED</code> {<code>VIA</code>|<code>WITH</code>} {{fmt/arg|authentication rule}} [OR ''repeat...''] | ||
** '''{{fmt/arg|user option}}''': ''one of –'' | |||
*** <code>REQUIRE</code> {<code>NONE</code> | {{fmt/arg|TLS option}} [[<code>AND</code>] ''repeat...''] | |||
*** [<code>WITH</code> {{fmt/arg|with option}} [''repeat...''] | |||
** '''{{fmt/arg|with option}}''': ''one of –'' | |||
*** <code>GRANT OPTION</code> | |||
*** {{fmt/arg|resource_option}} | |||
* <code>GRANT</code> {{fmt/arg|rolename}} <code>TO</code> {{fmt/arg|grantee}} [, ''repeat...''] [<code>WITH ADMIN OPTION</code>] | * <code>GRANT</code> {{fmt/arg|rolename}} <code>TO</code> {{fmt/arg|grantee}} [, ''repeat...''] [<code>WITH ADMIN OPTION</code>] | ||
** '''{{fmt/arg|grantee}}''': ''one of –'' | ** '''{{fmt/arg|grantee}}''': ''one of –'' | ||
*** {{fmt/arg|rolename}} | *** {{fmt/arg|rolename}} | ||
*** {{fmt/arg|username}} {{fmt/arg/opt|authentication option}} | *** {{fmt/arg|username}} {{fmt/arg/opt|authentication option}} | ||
Revision as of 18:08, 16 February 2025
Related
Template:L/samenegates privileges granted byGRANT.Template:L/samelists privileges granted byGRANT. (seeTemplate:L/same)
Syntax
GRANTTemplate:Fmt/argONTemplate:Fmt/arg Template:Fmt/argTOTemplate:Fmt/arg [ Template:Fmt/arg ]- Template:Fmt/arg: Template:Fmt/arg Template:Fmt/arg/opt [, repeat...]
- Template:Fmt/arg: one of –
USAGEALL[PRIVILEGES]
- Template:Fmt/arg: one of –
TABLEFUNCTIONPROCEDUREPACKAGEPACKAGE BODY
- Template:Fmt/arg: one of –
- Template:Fmt/arg: one of –
- Template:Fmt/arg: one of –
IDENTIFIED BY'Template:Fmt/arg'IDENTIFIED BY PASSWORD'password_hash'IDENTIFIED{VIA|WITH} Template:Fmt/arg [OR repeat...]
- Template:Fmt/arg: one of –
REQUIRE{NONE| Template:Fmt/arg [[AND] repeat...]- [
WITHTemplate:Fmt/arg [repeat...]
- Template:Fmt/arg: one of –
GRANT OPTION- Template:Fmt/arg
GRANTTemplate:Fmt/argTOTemplate:Fmt/arg [, repeat...] [WITH ADMIN OPTION]
