OceanBase logo

OceanBase

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

Product Overview
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

OceanBase

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

Product Overview
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.3

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & CertificationTicket
    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.3
    iconOceanBase Database
    SQL - V 4.3.3
    SQL
    KV
    • V 4.6.0
    • 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

    Privilege types in MySQL mode

    Last Updated:2024-11-11 08:44:21  Updated
    share
    What is on this page
    Privilege types

    folded

    share

    This topic describes the privilege types supported by the MySQL mode of OceanBase Database.

    Privilege types

    The MySQL mode of OceanBase Database supports the following three levels of privileges:

    • Global privileges: the privileges to manage a tenant, such as modifying system settings and accessing all tables in the tenant.
    • Database privileges: the privileges to manage all objects in a database, such as creating or deleting tables in the database, and accessing those tables.
    • Object privileges: the privileges to manage a specific object, such as accessing a specific table, view, or index.

    The following table lists the privileges supported by the MySQL mode of OceanBase Database.

    Type
    Privilege
    Description
    Object privilege CREATE The privilege to execute the CREATE TABLE statement.
    Object privilege SELECT The privilege to query data in all columns or the specified columns of a table.
    Object privilege INSERT The privilege to insert data into all columns or the specified columns of a table.
    Object privilege UPDATE The privilege to update data in all columns or the specified columns of a table.
    Object privilege DELETE The privilege to delete existing data.
    Object privilege DROP The privilege to execute statements such as DROP TABLE and DROP VIEW.
    Object privilege INDEX The privilege to create and delete table indexes.
    Object privilege ALTER The privilege to execute statements such as RENAME TABLE and ALTER TABLE.
    Object privilege CREATE VIEW The privilege to create views.
    Object privilege SHOW VIEW The privilege to query views or learn how views operate.
    Database privilege SELECT The privilege to query data in tables.
    Database privilege INSERT The privilege to insert row data into tables.
    Database privilege UPDATE The privilege to modify existing data.
    Database privilege DELETE The privilege to delete existing data.
    Database privilege CREATE The privilege to execute statements such as CREATE DATABASE, CREATE TABLE, CREATE SEQUENCE, and CREATE OUTLINE.
    Database privilege DROP The privilege to drop existing databases, tables, and views.
    Database privilege INDEX The privilege to create and delete table indexes.
    Database privilege ALTER The privilege to execute statements such as ALTER DATABASE, RENAME TABLE, ALTER TABLE, ALTER SEQUENCE, and ALTER OUTLINE.
    Database privilege CREATE VIEW The privilege to create views.
    Database privilege SHOW VIEW The privilege to query views or learn how views operate.
    Database privilege CREATE ROUTINE The privilege to create procedures and functions.
    Database privilege ALTER ROUTINE The privilege to modify and delete procedures and functions.
    Database privilege EXECUTE The privilege to execute procedures and functions.
    Global privilege CREATE The privilege to execute statements such as CREATE DATABASE, CREATE TABLEGROUP, CREATE TABLE, ALTER SEQUENCE, and ALTER OUTLINE.
    Global privilege ALTER The privilege to execute statements such as ALTER DATABASE, ALTER TABLEGROUP, RENAME TABLE, and ALTER TABLE.
    Global privilege SELECT The privilege to query data in tables.
    Global privilege INSERT The privilege to insert row data into tables.
    Global privilege UPDATE The privilege to modify existing data.
    Global privilege DELETE The privilege to delete existing data.
    Global privilege DROP The privilege to execute statements such as DROP DATABASE, DROP TABLEGROUP, DROP TABLE, DROP VIEW, DROP SEQUENCE and DROP OUTLINE.
    Global privilege INDEX The privilege to create and delete table indexes.
    Global privilege CREATE VIEW The privilege to create views.
    Global privilege SHOW VIEW The privilege to query views or learn how views operate.
    Global privilege ALTER TENANT The privilege to modify tenant information.
    Global privilege ALTER SYSTEM The privilege to execute the ALTER SYSTEM statement.
    Global privilege CREATE RESOURCE POOL The privilege to create, modify, and delete resource pools.
    Global privilege CREATE RESOURCE UNIT The privilege to create, modify, and delete resource units.
    Global privilege CREATE DATABASE LINK The privilege to create database links.
    Global privilege DROP DATABASE LINK The privilege to drop database links.
    Global privilege CREATE USER The privilege to execute statements such as CREATE USER, ALTER USER, DROP USER, CREATE ROLE, and DROP ROLE.
    Global privilege CREATE ROUTINE The privilege to create procedures and functions.
    Global privilege ALTER ROUTINE The privilege to modify and delete procedures and functions.
    Global privilege CREATE TABLESPACE The privilege to execute statements such as CREATE TABLESPACE, ALTER TABLESPACE, and DROP TABLESPACE.
    Global privilege EXECUTE The privilege to execute procedures and functions.
    Global privilege PROCESS The privilege to execute the SHOW PROCESSLIST statement to view processes of other users.
    Global privilege SHOW DB The privilege to view all database names on a server, including the names of the databases that are accessible to the user.
    Global privilege SHUTDOWN The privilege to execute the mysqladmin shutdown command.

    Note

    This privilege can be granted or revoked for a user using the GRANT and REVOKE statements, but the privilege will not take effect after being granted.

    Global privilege RELOAD The privilege to perform the Flush operation.

    Note

    This privilege can be granted or revoked for a user using the GRANT and REVOKE statements, but the privilege will not take effect after being granted.

    Global privilege FILE The privilege to execute the SELECT INTO OUTFILE and LOAD DATA INFILE statements.
    Global privilege SUPER The privilege to perform some advanced management operations, such as deleting a user process by using the KILL statement, modifying global MySQL variables by using the SET GLOBAL statement, and running various commands related to copying and logging.

    Previous topic

    Overview
    Last

    Next topic

    Create a user
    Next
    What is on this page
    Privilege types