#### `lock_wait_timeout`

- Description: Timeout in seconds for attempts to acquire metadata locks. Statements using metadata locks include FLUSH TABLES WITH READ LOCK, LOCK TABLES, HANDLER and DML and DDL operations on tables, stored procedures and functions, and views. The timeout is separate for each attempt, of which there may be multiple in a single statement. `0` (from MariaDB 10.3.0) means no wait. See WAIT and NOWAIT.
- Commandline: `--lock-wait-timeout=#`
- Scope: Global, Session
- Dynamic: Yes
- Data Type: `numeric`
- Default Value:
  - `86400` (1 day) >= MariaDB 10.2.4
  - `31536000` (1 year) <= MariaDB 10.2.3
- Range:
  - `0` to `31536000` (>= MariaDB 10.3)
  - `1` to `31536000` (<= MariaDB 10.2)