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 2: Line 2:
* <code>{{l/same|REVOKE}}</code> negates privileges granted by <code>GRANT</code>.
* <code>{{l/same|REVOKE}}</code> negates privileges granted by <code>GRANT</code>.
* <code>{{l/same|SHOW GRANTS}}</code> lists privileges granted by <code>GRANT</code>. (see <code>{{l/same|SHOW}}</code>)
* <code>{{l/same|SHOW GRANTS}}</code> lists privileges granted by <code>GRANT</code>. (see <code>{{l/same|SHOW}}</code>)
==Reference==
* [https://mariadb.com/kb/en/grant/ MariaDB Knowledge Base]
==Example==
* <syntaxhighlight inline lang=SQL>GRANT ALL ON roundcube.* to 'rc-bot'@localhost;</syntaxhighlight>
==Syntax==
==Syntax==
* <code>GRANT</code> {{fmt/arg|priv list}} <code>ON</code> {{fmt/arg|object type}} {{fmt/arg|priv level}} <code>TO</code> {{fmt/arg|user spec}} [ {{fmt/arg|user options}} ]
* <code>GRANT</code> {{fmt/arg|priv list}} <code>ON</code> {{fmt/arg|object type}} {{fmt/arg|priv level}} <code>TO</code> {{fmt/arg|user spec}} [ {{fmt/arg|user options}} ]

Revision as of 18:53, 16 February 2025

Reference

Example

  • GRANT ALL ON roundcube.* to 'rc-bot'@localhost;

Syntax