How about using the mysql command line tool with --quick --raw -be options via a piped open?
my $sql = ...; my $cmd = qq[mysql --quick --raw -u $user -p$pass -be $sql] my @results; eval{ alarm 5; my $pid = open SQL, "$cmd |" or die $!; push @results, <SQL>; alarm 0; }; if( $@ ) { } ...
In reply to Re: How to Limit MySql Execution Time?
by BrowserUk
in thread How to Limit MySql Execution Time?
by aceofspace
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |