If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > OS X MySQL infinite loop ;( How to cancel the query?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-08-08, 14:05
screenmates screenmates is offline
Registered User
 
Join Date: Jul 2005
Posts: 63
OS X MySQL infinite loop ;( How to cancel the query?

I ran a PHP script to update a table accidentally that has an infinite loop without a break condition on my dev machine. The script hung, the fan speed went up and no further MySQL queries were possible because it is busy updating the table inside the inifinite loop. I tried everything - using the SQL Administrator to stop the server (it fails to stop), event manager to quit/force-quit, reboot, etc but in vain. Even when I was able to kill the MySQL process, when I restart the machine, MySQL seems to pick up the pending query from the log file (?) and continue updating the table infinitely - the fan speed goes up and no further queries are possible.

How can fix this situation?

TIA
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On