tags:

views:

3657

answers:

2

I would like to set a maximum execution time for sql queries like set_time_limit() in php. How can I do ?

+2  A: 

If you are using InnoDB storage you can set a timeout in it's configuration

http://dev.mysql.com/doc/refman/5.0/en/innodb-configuration.html

adam
thx and with myisam storage ?
i didn't find which parameter can achieve that in the manual... could you help me ?
A: 

set_time_limit(0);

nik