mysql_set_timeout

Sets query timeout for a connection

function mysql_set_timeout(
  int $query_timeout_ms = -1,
  resource $link_identifier = NULL,
): bool;

Parameters

  • int $query_timeout_ms = -1 - How many milli-seconds to wait for an SQL query
  • resource $link_identifier = NULL - Which connection to set to. If absent, default or current connection will be applied to.

Returns

  • bool