I just want to how can I change the global timeout duration and how can I test it.
I've some queries that I believe to change the defaul timeout duration, like;
SET GLOBAL max_execution_time = 4;
I think if I set max_execution_time = 4 , and if my query will executing in 5 sec I 'll get timeout error. I just tried some queries for testing. I wondered if I apply to default imeout to 4 sec;
DO SLEEP(5);
SELECT SLEEP(5);
also I found a query for test the timeout duration that is;
WAITFOR DELAY (5);
but didn't work (code throw an error).
After I tried thoose are, I didn't get the timout error. I expected to get it.