Logo icon
    • Contents
    • Quick start
    • Concepts
    • For DevOps
    • For Developers
    • For Security Engineers
    • For Contributors
    • Reference
      • YQL
        • Overview
          • Overview
          • Lexical structure
          • Expressions
          • ACTION
          • ALTER ASYNC REPLICATION
          • ALTER GROUP
          • ALTER VIEW
          • ALTER TOPIC
          • ALTER USER
          • ANALYZE
          • CREATE ASYNC REPLICATION
          • CREATE GROUP
          • CREATE OBJECT TYPE SECRET
          • CREATE VIEW
          • CREATE TOPIC
          • CREATE USER
          • COMMIT
          • DECLARE
          • DELETE
          • DROP ASYNC REPLICATION
          • DROP GROUP
          • DROP TABLE
          • DROP VIEW
          • DROP USER
          • GRANT
          • GROUP BY
          • FLATTEN
          • INSERT
          • INTO RESULT
          • JOIN
          • PRAGMA
          • REPLACE
          • REVOKE
          • UPDATE
          • UPSERT
          • VALUES
          • WINDOW
          • Unsupported statements
        • Query plans
      • Compatibility with PostgreSQL
      • Embedded UI
      • Integrations
      • YDB CLI
      • YDB Native SDK
      • Languages and APIs
      • Kafka API
      • Configuration
      • Observability
      • YDB DStool
      • ydbops
      • Docker
    • Recipes
    • Troubleshooting
    • Questions and answers
    • Downloads
    1. Reference
    2. YQL
    3. Syntax
    4. ALTER USER

    ALTER USER

    Changes the user password.

    Syntax

    ALTER USER user_name [ WITH ] option [ ... ]
    
    • user_name: The name of the user.

    • option — The command option:

      • PASSWORD 'password' — changes the password to password.
      • PASSWORD NULL — sets an empty password.
      • NOLOGIN - disallows user login (user lockout).
      • LOGIN - allows user login (user unlocking).

    Was the article helpful?

    Previous
    ALTER TOPIC
    Next
    ANALYZE