Home >Database >Mysql Tutorial >How to stop a running MYSQL statement on Navicat

How to stop a running MYSQL statement on Navicat

WBOY
WBOYforward
2023-06-04 13:31:042112browse

    1. Graphically stop SQL

    Run an extremely long SQL and find that there is no result. Click "Stop##" in the picture below. #" button, but unfortunately it has no effect and cannot be stopped:

    How to stop a running MYSQL statement on Navicat

    2. Use SQL mode to stop the running SQL

    (1) Find the running SQL ID

    Use show processlist to find:

    show processlist;

    How to stop a running MYSQL statement on Navicat

    (2) Run the kill command to kill SQL

    Known from the previous step The ID of SQL is 14205. Run the kill command to terminate:

    How to stop a running MYSQL statement on Navicat

    The SQL statement was KILLed and the termination was successful!

    How to stop a running MYSQL statement on Navicat

    The above is the detailed content of How to stop a running MYSQL statement on Navicat. For more information, please follow other related articles on the PHP Chinese website!

    Statement:
    This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete