Updated on 2026-11-09 GMT+08:00

Constraints on Database Proxy

Supported Regions

To purchase multiple database proxies, you need to submit a service ticket to request the required permissions.

Supported Versions

  • MySQL 5.6: 5.6.51.7 or later
  • MySQL 5.7: 5.7.37.2 or later
  • MySQL 8.0: all minor versions
  • MySQL 8.4: To enable database proxy for MySQL 8.4, ensure that the proxy instance version is later than 2.26.06.000 and the database parameter authentication_policy is set to *:mysql_native_password.

For details about how to query the instance version, see Query the RDS Instance Version.

If your kernel version is not supported, upgrade the minor version.

Constraints

Table 1 Constraints

Category

Constraints

Unsupported functions

  • Proxy instances do not support compression protocols.
  • Proxy instances only support permission verification at the database level, not at the individual table level.
  • Proxy instances do not support Chinese database names or usernames.
  • Proxy instances do not support SHOW ERRORS or SHOW WARNINGS commands.
  • Proxy instances do not support the caching_sha2_password identity authentication plugin for RDS for MySQL 8.0.
  • After Database Proxy is enabled, the ports and floating IP addresses of the primary instance and read replicas cannot be changed.

Usage constraints

  • One RDS for MySQL read replica can connect to different proxies. However, you are advised to configure only one proxy that can allocate requests to the read replica.
  • rdsProxy is a built-in database proxy account for RDS. To ensure that read/write splitting functions properly, do not create any account with the same name as rdsProxy.
  • If read/write splitting is enabled and you delete a primary RDS for MySQL instance, its read replicas are also deleted and read/write splitting is disabled.
  • If multi-statements are executed, all subsequent requests on the current connection will be routed to the primary instance by default. To restore read/write splitting, disconnect the application and re-establish the connection. Multiple processing modes for multi-statements are supported. For details, see Configuring Multi-Statement Processing Modes.
  • If operations for explicitly creating a temporary table are performed, all subsequent requests over the current connection will be routed to the primary instance by default. To restore read/write splitting, disconnect the connection and re-establish another one.
  • When the read/write splitting address is used, all transaction requests are routed to the primary instance (you can use the transaction splitting feature to route read requests prior to write operations in a transaction to read replicas). The non-transaction read consistency is not ensured. To ensure read consistency, encapsulate the read requests into a transaction.
  • When the read/write splitting address is used, the LAST_INSERT_ID() function can be used only in transactions.
  • Statements containing user-defined variables will be routed to the primary instance.
  • To prevent excessive resource usage by a proxy, no more than 100 SQL statements can be committed and executed in a batch and the size of any concatenate SQL statement cannot exceed 100 MB.
  • When a .NET client is used to connect to database proxies, the client's MySQL.Data driver version must be 8.0.19 or later because earlier driver versions may be incompatible with database proxies.
  • Before using transaction splitting, upgrade your database proxy to the latest version.
  • For more constraints, see Read Requests Sent Only to the Primary Node.

Syntax Constraints

Read/write splitting randomly routes frontend requests to backend instance nodes by the configured weights.

Therefore, some SQL statements may have different results when being executed multiple times.

  • Executing show processlist through a proxy instance and directly on the DB instance returns different results. This is because the proxy instance's show processlist only displays the requests that are routed through its proxy nodes.
  • If a proxy node is abnormal, and you connect to the proxy through the read/write splitting address and run show processlist or kill, the command execution may be prolonged or freeze, but your services are not affected.
  • If a proxy node is deleted, requests routed through this deleted node may be displayed in the output of show processlist executed on the proxy instance.
  • If kill is executed on the proxy instance, error information such as timeout may be displayed occasionally. You can run show processlist again to check whether the services are killed successfully.
  • If a proxy node is abnormal, there may be frame freezing for 2 seconds when you run SHOW PROCESSLIST. The results will still be returned.
  • Requests that are routed by a proxy instance can be killed only by running kill on this proxy instance.
  • With a read/write splitting address used, if stored procedures and functions rely on user variables (@variable), the execution results may be incorrect.
  • Enabling session-level connection pooling will cause SELECT LAST_INSERT_ID() to consistently return 0.