How do I stop a running query on my Amazon RDS instance that is running MySQL?

Last updated: 2019-02-06

I started a query, but I want to stop (end) the query before it finishes. How do I stop the query?

Resolution

To stop (end) a running query on an Amazon Relational Database Service (Amazon RDS) DB instance that is running MySQL, see Ending a session or query.

Both queries require that you use a thread ID when calling the command. For steps to check running queries and their thread IDs, see How do I check running queries for my Amazon RDS MySQL instance?