Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Managed Service for MySQL®
  • Getting started
    • Resource relationships
    • Network in Managed Service for MySQL
    • Quotas and limits
    • Disk types
    • Backups
    • Replication
    • Maintenance
    • User permissions
    • MySQL settings
    • SQL command limits
    • Comparing MySQL® 5.7 and 8.0
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  1. Concepts
  2. User permissions

User permissions

Written by
Yandex Cloud
Updated at December 11, 2023

MySQL® manages user permissions at three levels:

  • Cluster host (administrative privileges).
  • Individual database (database privileges).
  • Individual DB object, such as a table or index (privileges for database objects).

The user permissions and settings that apply in a Managed Service for MySQL® cluster are common to all cluster hosts.

The permissions that apply at the level of the entire DB cluster (PROCESS, REPLICATION CLIENT, and REPLICATION SLAVE) are set in the user settings.

To differentiate the user permissions at the level of individual databases, each user is granted one or more privileges. Each privilege allows the user to perform the actions specified in the privilege description. A user is created along with a cluster and this user is granted ALL_PRIVILEGES in the first database of the cluster.

To manage user permissions for the entire cluster or an individual database, use the Yandex Cloud interfaces. Changes made by SQL commands at these levels are not saved: the cluster returns to the state set through the Yandex Cloud interfaces.

To manage user permissions at the level of an individual DB object, use the GRANT and REVOKE SQL commands.

User privileges in Managed Service for MySQL® clustersUser privileges in Managed Service for MySQL® clusters

Privilege Description
ALL_PRIVILEGES Allows performing any action with user data in the database and using the SHOW SLAVE STATUS statement.
ALL Synonym for the ALL_PRIVILEGES privilege used for managing privileges via the CLI.
ALTER Allows using the ALTER TABLE statement that changes the structure of any custom tables in the database. Requires CREATE and INSERT privileges. For renaming tables
ALTER_ROUTINE Allows using the ALTER ROUTINE statement to change or delete any custom stored procedures and functions in the database.
CREATE Allows using the CREATE statement to create use tables in the database.
CREATE_ROUTINE Allows using the CREATE ROUTINE statement to create custom stored procedures and functions in the database.
CREATE_TEMPORARY_TABLES Allows using the CREATE TEMPORARY TABLE statement to create temporary custom tables in the database.
CREATE_VIEW Allows using the CREATE VIEW statement to create custom views in the database.
DELETE Allows deleting records from any custom tables in the database.
DROP Allows deleting tables and views.
EVENT Allows you to create, change, delete, or display events in the Event Scheduler.
EXECUTE Allows executing any custom stored procedures and functions.
INDEX Allows you to create and delete indexes from existing tables in the database.
INSERT Allows inserting records into custom DB tables.
LOCK_TABLES Allows the explicit use of the LOCK_TABLES statement to create table locks in the database.
REFERENCES Enables you to create FOREIGN KEYS for DB tables.
SELECT Allows you to read data from DB tables.
SHOW_VIEW Allows using the SHOW CREATE VIEW statement.
TRIGGER Allows you to create, delete, execute, or display triggers for existing DB tables.
UPDATE Allows updating records in DB tables.

To learn more about managing user permissions, see the MySQL® documentation.

Was the article helpful?

Previous
Maintenance
Next
MySQL settings
© 2025 Direct Cursus Technology L.L.C.