LMSouq
database Open

How can I stop a running MySQL query?

DA
David B
1 month ago
3 views
Problem Description
I connect to `mysql` from my Linux shell. Every now and then I run a `SELECT` query that is too big. It prints and prints and I already know this is not what I meant. I would like to stop the query. Hitting `Ctrl+C` (a couple of times) kills `mysql` completely and takes me back to shell, so I have to reconnect. Is it possible to stop a query without killing `mysql` itself?

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base