Use the mysql_rds_kill_query procedure with the query’s ID to terminate any queries that are currently being processed by the MySQL server.
You can query the MySQL INFORMATION_SCHEMA PROCESSLIST table to get the query ID. However, note that the server connection to MySQL is retained.
CALL mysql.rds_kill_query(queryID);