From 8681f660cba6baca171c73a9cc54f2bf05df429a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Wed, 21 Apr 2021 09:54:14 +0200 Subject: [PATCH] comment-syntax: Correct the note about `--comments` With the 8.0.23 MySQL client TiDB specific comments are cleared out, so even with the latest client you still need to add `--comments`. Related: - https://github.com/pingcap/tidb/issues/24176#issuecomment-823835619 --- comment-syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comment-syntax.md b/comment-syntax.md index e934e2cde9dbb..0d37b47bb2cf7 100644 --- a/comment-syntax.md +++ b/comment-syntax.md @@ -150,6 +150,6 @@ For details about the optimizer hints that TiDB supports, see [Optimizer hints]( > **Note** > -> In MySQL client before 5.7.7, TiDB specific comment syntax and optimizer comment syntax are treated as comments and cleared by default. To use the two syntaxes in the old client, add the `--comments` option when you start the client. For example, `mysql -h 127.0.0.1 -P 4000 -uroot --comments`. +> In MySQL client, the TiDB-specific comment syntax is treated as comments and cleared by default. In MySQL client before 5.7.7, hints are also seen as comments and are cleared by default. It is recommended to use the `--comments` option when you start the client. For example, `mysql -h 127.0.0.1 -P 4000 -uroot --comments`. For more information, see [Comment Syntax](https://dev.mysql.com/doc/refman/5.7/en/comments.html).