Jump to content

How to stop SQL execution in PHP


abdfahim

Recommended Posts

When I insert huge amount of data to my mysql table using php, sometime I want to stop inserting in some middle point. But if I even close the window, mysql continue inserting in background. Is there any way that I forcefully stop the execution of mysql_query() command at some mid-point of the execution?

Link to comment
https://forums.phpfreaks.com/topic/85003-how-to-stop-sql-execution-in-php/
Share on other sites

Well, my case is not that easy. Everyday I have to calculate many data and insert it into database. Now I dont know why, but some day it takes like 10 minuites, but some time even after 5/6 hours, the process is still running (I know that because I see mysqld-nt process running and taking cpu/ram in task manager). In that case, I want to stop execution if it takes so long.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.