OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Database

SQL - V4.3.0

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & Certification
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Database
    3. SQL
    4. V4.3.0
    iconOceanBase Database
    SQL - V 4.3.0
    SQL
    KV
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    mysql.user

    Last Updated:2026-04-15 08:30:02  Updated
    share
    What is on this page
    Purpose
    Columns

    folded

    share

    Purpose

    The mysql.user view provides information about user-level privileges. It is a virtual table.

    Note

    This view is introduced since OceanBase Database V3.2.1.

    Columns

    Column Type Nullable? Description
    host varchar(128) NO The name of the host.
    user varchar(128) NO The username.
    password varchar(128) NO The password of the user.
    select_priv varchar(1) NO Indicates whether the user can execute the SELECT statement.
    insert_priv varchar(1) NO Indicates whether the user can execute the INSERT statement.
    update_priv varchar(1) NO Indicates whether the user can execute the UPDATE statement.
    delete_priv varchar(1) NO Indicates whether the user can execute the DELETE statement.
    create_priv varchar(1) NO Indicates whether the user can execute the CREATE statement.
    drop_priv varchar(1) NO Indicates whether the user can execute the DROP statement.
    reload_priv varchar(1) NO Indicates whether the user can execute the FLUSH statement. At present, this column is not used.
    shutdown_priv varchar(1) NO Indicates whether the user can run the shutdown command. At present, this column is not used.
    process_priv varchar(1) NO Indicates whether the user can query information about active threads.
    file_priv varchar(1) NO Indicates whether the user has the file read and write privilege. At present, this column is not used.
    grant_priv varchar(1) NO Indicates whether the user can execute the GRANT statement.
    reference_priv varchar(1) NO This column is not used.
    index_priv varchar(1) NO Indicates whether the user can create indexes.
    alter_priv varchar(1) NO Indicates whether the user can execute the ALTER statement.
    show_db_priv varchar(1) NO Indicates whether the user can execute theSHOW DATABASE statement.
    super_priv varchar(1) NO Indicates whether the user can execute superuser statements.
    create_tmp_table_priv varchar(1) NO Indicates whether the user can create temporary tables. At present, this column is not used.
    lock_tables_priv varchar(1) NO Indicates whether the user can execute the LOCK TABLES statement. At present, this column is not used.
    execute_priv varchar(1) NO Indicates whether the user can execute stored procedures. At present, this column is not used.
    repl_slave_priv varchar(1) NO This column is not used.
    repl_client_priv varchar(1) NO This column is not used.
    create_view_priv varchar(1) NO Indicates whether the user can create views.
    show_view_priv varchar(1) NO Indicates whether the user can execute the SHOW CREATE VIEW statement.
    create_routine_priv varchar(1) NO Indicates whether the user can create stored procedures. At present, this column is not used.
    alter_routine_priv varchar(1) NO Indicates whether the user can modify stored procedures. At present, this column is not used.
    create_user_priv varchar(1) NO Indicates whether the user can execute the CREATE USER statement.
    event_priv varchar(1) NO Indicates whether the user can create, modify, and delete events. At present, this column is not used.
    trigger_priv varchar(1) NO Indicates whether the user has the privilege to execute triggers. At present, this column is not used.
    create_tablespace_priv varchar(1) NO Indicates whether the user can create tablespaces. At present, this column is not used.
    ssl_type varchar(10) NO At present, this column is not used.
    ssl_cipher varchar(1024) NO At present, this column is not used.
    x509_issuer varchar(1024) NO At present, this column is not used.
    x509_subject varchar(1024) NO At present, this column is not used.
    max_questions bigint(20) NO The maximum number of queries that a user can perform per hour. This column is not used.
    max_updates bigint(20) NO The maximum number of updates that a user can perform per hour. At present, this column is not used.
    max_connections bigint(20) NO The maximum number of connections that a user can receive per hour. At present, this column is not used.
    max_user_connections bigint(20) NO The maximum number of simultaneous request connections. At present, this column is not used.
    plugin varchar(1024) NO At present, this column is not used.
    authentication_string varchar(1024) NO At present, this column is not used.
    password_expired varchar(1) NO Indicates whether the user password has expired. At present, this column is not used.
    account_locked varchar(1) NO Indicates whether the user has been locked.

    Previous topic

    mysql.time_zone_transition_type
    Last

    Next topic

    oceanbase.DBA_IND_PARTITIONS
    Next
    What is on this page
    Purpose
    Columns