MySQL Constraints

Table 1 shows the constraints designed to ensure the stability and security of RDS for MySQL.

Table 1 Function constraints

Function Item

Constraints

Database access

  • If public accessibility is not enabled for the RDS DB instance, the RDS DB instance must be in the same VPC as the ECS.
  • RDS read replicas must be created in the same subnet as the primary DB instance.
  • The security group must allow access from an ECS.

    By default, RDS cannot be accessed through an ECS in a different security group. You need to add an inbound rule to the RDS security group.

  • The default RDS port is 3306. You can change it if you want to access RDS through another port.

Deployment

ECSs in which DB instances are deployed are not visible to users. You can access the DB instances only through an IP address and a port number.

Database root permissions

Only the root user permissions are provided on the instance creation page. For more information about root permissions, see Table 2.

Database parameter modification

Most parameters can be modified on the RDS console.

Data import

  • Through the command-line interface (CLI) or graphical user interface (GUI)
  • Through the DRS service
  • Through MySQL CLI tools

For details, see Migrating MySQL Data Using DRS.

MySQL storage engine

For details, see What Storage Engines Does the RDS for MySQL Support?

Database replication setup

RDS for MySQL provides a dual-node cluster with the primary/standby replication architecture. You do not need to set up replication. The standby DB instance is not visible to users and therefore you cannot access it directly.

DB instance reboot

RDS DB instances cannot be rebooted through commands. They must be rebooted on the RDS console.

RDS backup files

RDS backup files are stored in OBS buckets and are not visible to users.

Table 2 Root user permissions

Permission

Level

Description

Supported

Select

Table

Query permissions

Supported

Insert

Table

Insert permissions

Update

Table

Update permissions

Delete

Table

Delete permissions

Create

Database, table, or index

Permissions of creating databases, tables, or indexes

Drop

Database or table

Permissions of deleting databases or tables

Reload

Server management

Permissions of running the following commands: flush-hosts, flush-logs, flush-privileges, flush-status, flush-tables, flush-threads, refresh, and reload

Process

Server management

Permissions of viewing processes

Grant

Database, table, or stored program

Permissions of granting access control

References

Database or table

Foreign key operation permissions

Index

Table

Index permissions

Alter

Table

Permissions of altering tables, such as adding fields or indexes

Show_db

Server management

Permissions of viewing database connections

Create_tmp_table

Server management

Permissions of creating temporary tables

Lock_tables

Server management

Permissions of locking tables

Execute

Stored procedure

Permissions of executing storage procedures

Repl_slave

Server management

Replication permissions

Repl_client

Server management

Replication permissions

Create_view

View

Permissions of creating views

Show_view

View

Permissions of viewing views

Create_routine

Stored procedure

Permissions of creating storage procedures

Alter_routine

Stored procedure

Permissions of altering storage procedures

Create_user

Server management

Permissions of creating users

Event

Database

Event triggers

Trigger

Database

Triggers

Super

Server management

Permissions of killing threads

Not supported

File

File on the server

Permissions of accessing files on database server nodes

Not supported

Shutdown

Server management

Permissions of shutting down databases

Create_tablespace

Server management

Permissions of creating tablespaces