Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system-variables: add skip-name-resolve (#6491) #6586

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
system-variables: add skip-name-resolve
  • Loading branch information
morgo authored and ti-chi-bot committed Sep 30, 2021
commit 3b855e33b512c40ca9498ed2ad93aa2abcd33a1f
17 changes: 17 additions & 0 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,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