Skip to content

Commit

Permalink
system-variables: add skip-name-resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
morgo committed Sep 15, 2021
1 parent 0ffaffd commit 15cb467
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,23 @@ mysql> SELECT * FROM t1;
- Range: `[0, 65535]`
- The port that the `tidb-server` is listening on when speaking the MySQL protocol.

### skip_name_resolve <span class="version-mark">New in v5.2.0</span>

- Scope: GLOBAL
- Default value: `OFF`
- This controls if the `tidb-server` should resolve hostnames as part of the connection handshake.
- Enabling this option is useful as a performance optimization when DNS is unreliable.

> **Note:**
>
> When `skip_name_resolve=ON`, users with a hostname in their identity will no longer be able to log in. i.e.
>
> ```sql
> CREATE USER 'appuser'@'apphost' IDENTIFIED BY 'app-password';
> ```
>
> In this example, it is recommended to replace _apphost_ with an IP address or wildcard (`%`).
### socket
- Scope: NONE
Expand Down

0 comments on commit 15cb467

Please sign in to comment.