# Account Management

- [ALTER USER](https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements/alter-user.md): Complete ALTER USER guide for MariaDB. Complete syntax for modifying authentication, passwords, and account security settings with comprehensive examples and.
- [CREATE ROLE](https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements/create-role.md): Create new roles to simplify privilege management. Learn how to define a role that can be assigned to multiple users or other roles.
- [CREATE USER](https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements/create-user.md): Complete guide to creating MariaDB user accounts. Complete CREATE USER syntax for authentication methods and password policies with comprehensive examples.
- [DROP ROLE](https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements/drop-role.md): Remove a role from the system. Learn the syntax to delete defined roles and revoke them from any users or roles that currently hold them.
- [DROP USER](https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements/drop-user.md): Complete DROP statement reference for MariaDB. Complete guide for safely removing database objects with CASCADE options with comprehensive examples and best.
- [GRANT](https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements/grant.md): Complete privilege management guide for MariaDB. Complete GRANT syntax for database, table, and column permissions with roles with comprehensive examples and.
- [RENAME USER](https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements/rename-user.md): Rename existing database accounts. This guide explains how to change a user's name while preserving their current privileges and properties.
- [REVOKE](https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements/revoke.md): Remove privileges or roles. Learn how to withdraw previously granted permissions from users or roles to restrict access and secure the database.
- [SET DEFAULT ROLE](https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements/set-default-role.md): Define the default role for a user. Learn how to configure which role is automatically active when a user connects to the server.
- [SET PASSWORD](https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements/set-password.md): Complete reference for SET PASSWORD in MariaDB. Complete syntax guide with all options, clauses, and practical examples with comprehensive examples and best.
- [SET SESSION AUTHORIZATION](https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements/set-session-authorization.md): Impersonate another user for the current session. Learn how to assume the identity and privileges of another account for testing or administration.
- [SET ROLE](https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements/set-role.md): Sets the current role for the session. Learn how to enable none, or a specific role to change your current privileges dynamically.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
