MariaDB/SQL/user: Difference between revisions

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Created page with "{{fmt/title|SQL commands for managing user accounts}} ==Commands== * <code>../ALTER/ {{l/pfx|../ALTER/|USER}}</code> * <code>../CREATE/ {{l/pfx|../CREATE/|ROLE}}</code..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
* <code>[[../DROP/]] {{l/pfx|../DROP/|ROLE}}</code>
* <code>[[../DROP/]] {{l/pfx|../DROP/|ROLE}}</code>
* <code>[[../DROP/]] {{l/pfx|../DROP/|USER}}</code>
* <code>[[../DROP/]] {{l/pfx|../DROP/|USER}}</code>
* <code>[[../GRANT/]]</code>
* <code>[[../GRANT/]]</code>: grant privileges to user-accounts
* <code>[[../RENAME/]] USER</code>
* <code>[[../RENAME/]] USER</code>
* <code>[[../REVOKE/]]</code>
* <code>[[../REVOKE/]]</code>
Line 13: Line 13:
* <code>[[../SET/]] SESSION AUTHORIZATION</code>
* <code>[[../SET/]] SESSION AUTHORIZATION</code>
* <code>[[../SET/]] ROLE</code>
* <code>[[../SET/]] ROLE</code>
===user security===
* <code>[[../SHOW/]] {{l/pfx|../SHOW/|GRANTS}}</code>: list all granted privileges (privilege x user)
* <code>[[../SHOW/]] {{l/pfx|../SHOW/|PRIVILEGES}}</code>: list all defined privilege-types (can be assigned to users)
==Reference==
==Reference==
* [https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements Account Management]
* [https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements Account Management]

Latest revision as of 01:03, 26 April 2026

SQL commands for managing user accounts

{{#set: page title=SQL commands for managing user accounts }}

Commands

user security

  • SHOW GRANTS: list all granted privileges (privilege x user)
  • SHOW PRIVILEGES: list all defined privilege-types (can be assigned to users)

Reference