- Documentation
RDS for MySQL
Kernel functions
Stability
Idle transaction cleanup
Stability
Idle transaction cleanup
Idle transaction cleanup
RDS for MySQL provides the ability to automatically clean up long-idle transactions. This topic describes how to use this feature.
Supported version
- MySQL 5.7 version, and the kernel minor version is MySQL 5.7.32_20241215 and above.
- MySQL 8.0 version, and the kernel minor version is MySQL 8.0.32_20230615 and above.
- MySQL 8.4 version, and the kernel minor version is MySQL 8.4.7_20260415 and above.
Limitation
Instances in the RDS for MySQL 8.0.26 version series do not currently support this feature.
Instructions
Users can use the following parameter to configure the time threshold for clearing idle transactions.
Examples
- Set kill_idle_transaction to 5.
- Start a transaction and write a record.
- Wait for more than 5 seconds. When you query again, you will find that the transaction has been rolled back.
Last updated: 2026.05.28 15:17:48