I started a query, but I want to stop (end) the query before it finishes.
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 DB instance?
Common DBA tasks for MySQL DB instances
Creating and connecting to a MySQL DB instance