Page 1 of 1

MySQL Query Timeout program in PHP

Posted: Wed Oct 15, 2008 8:33 pm
by piykumar
I'm using http://myclient.polarlava.com/ as web query interface for mysql server

Now I want to add "Query Timeout" functionality to it

For that I need to get the PID for last ran mysql query and then using kill
PID - I can kill the process on MySQL server

Please explain how to do that in PHP Thanks!

Similar to what described @ http://bytes.com/forum/thread156058.html


Thanks,
Piyush

Re: MySQL Query Timeout program in PHP

Posted: Wed Oct 15, 2008 10:44 pm
by piykumar
Any help please ..??

How do I get the PID of my last select query ran from the web query
interface..?? Any php function..?

Re: MySQL Query Timeout program in PHP

Posted: Thu Oct 16, 2008 1:17 am
by requinix
It's just another query. Try looking around - there's the KILL query for starters.