📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

User & Role



This page provides a comprehensive overview of user and role operations in TiDB Cloud Lake, organized by functionality for easy reference.

User Management

CommandDescription
CREATE USERCreates a new user account
ALTER USERModifies an existing user account
DROP USERRemoves a user account
DESC USERShows detailed information about a user
SHOW USERSLists all users in the system

Role Management

CommandDescription
CREATE ROLECreates a new role
DROP ROLERemoves a role
SET ROLESets the current active role for the session
SET SECONDARY ROLESSets secondary roles for the session
SHOW ROLESLists all roles in the system

Privilege Management

CommandDescription
GRANTAssigns privileges to roles
REVOKERemoves privileges from roles
SHOW GRANTSShows role grants and role assignments

Was this page helpful?