Mysql excution time out exception not working on server


 try {
            $result = DB::select("select COUNT(*) FROM ee_suborders WHERE metaData LIKE '%Umakant%'");
            print_r($result);
            Log::info("Exception Test Data", [$result]);
        } catch (Exception $e) {
            Log::info("Exception Test Error", [$e->getMessage(), $e->getCode(), $e->getFile(), $e->getLine()]);
        }

Laravel
This code throwing Exception on MySQL max_execution_time out for 100 second but it is not throwing Exception on server even database is same in local and server

I check configuration looks similar on local and server