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

faq: update mysql8 client fail to connect tidb #3577

Merged
merged 7 commits into from
Jul 3, 2020

Conversation

tiancaiamao
Copy link
Contributor

What is changed, added or deleted? (Required)

Which TiDB version(s) do your changes apply to? (Required)

  • master (the latest development version)
  • v4.0 (TiDB 4.0 versions)
  • v3.1 (TiDB 3.1 versions)
  • v3.0 (TiDB 3.0 versions)
  • v2.1 (TiDB 2.1 versions)

What is the related PR or file link(s)?

  • This PR is translated from:
  • Other reference link(s):

pingcap/tidb#6942
pingcap/tidb#7606

@tiancaiamao
Copy link
Contributor Author

PTAL @tennix @jackysp

@jackysp
Copy link
Member

jackysp commented Jun 9, 2020

Please fix CI.

faq/tidb-faq.md Outdated Show resolved Hide resolved
faq/tidb-faq.md Outdated
mysql -h 127.0.0.1 -u root -P 4000 --default-auth=mysql_native_password --default-character-set=utf8
```

原因是字符集支持以及[密码验证方式的兼容性](/security-compatibility-with-mysql.md)。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

什么的原因呢?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

就兼容性问题呀
我们兼容的是 mysql7 的行为
mysql8 把默认的密码加密方式改掉了,所以要加参数指定使用旧的加密方式

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这句话没说清楚,改成无法登陆的原因是 MySQL 8.0 会更改默认的密码加密方式,所以需要添加以上参数指定使用旧的加密方式

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

无法登陆的原因是因为我们对字符集的支持以及我们在密码验证方式上的兼容性
没有兼容 mysql8 的默认行为
所以需要添加以上参数指定使用旧的加密方式

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

无法登陆的原因是 TiDB 对字符集的支持和密码校验方式上不兼容 MySQL 的默认行为,所以需要添加以上参数指定使用旧的加密方式。 这样呢?可以把解释加进文档里

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以再丰富一下描述,不着急。 @tiancaiamao

@TomShawn TomShawn added the translation/doing This PR’s assignee is translating this PR. label Jun 10, 2020
faq/tidb-faq.md Outdated Show resolved Hide resolved
@TomShawn TomShawn assigned tiancaiamao and unassigned toutdesuite Jun 10, 2020
@TomShawn TomShawn added translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR. and removed translation/doing This PR’s assignee is translating this PR. labels Jun 10, 2020
faq/tidb-faq.md Outdated Show resolved Hide resolved
@tiancaiamao
Copy link
Contributor Author

PTAL @TomShawn @jackysp

@TomShawn
Copy link
Contributor

LGTM

Copy link
Member

@tennix tennix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Jul 3, 2020
Copy link
Contributor

@ti-srebot ti-srebot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-srebot
Copy link
Contributor

@tennix,Thanks for your review.

@TomShawn
Copy link
Contributor

TomShawn commented Jul 3, 2020

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Jul 3, 2020
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit 3d19bdd into pingcap:master Jul 3, 2020
ti-srebot pushed a commit to ti-srebot/docs-cn that referenced this pull request Jul 3, 2020
@ti-srebot
Copy link
Contributor

cherry pick to release-3.0 in PR #3871

ti-srebot pushed a commit to ti-srebot/docs-cn that referenced this pull request Jul 3, 2020
@ti-srebot
Copy link
Contributor

cherry pick to release-3.1 in PR #3872

ti-srebot pushed a commit to ti-srebot/docs-cn that referenced this pull request Jul 3, 2020
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #3873

TomShawn pushed a commit that referenced this pull request Jul 3, 2020
Signed-off-by: ti-srebot <[email protected]>

Co-authored-by: tiancaiamao <[email protected]>
TomShawn added a commit that referenced this pull request Jul 3, 2020
* cherry pick #3577 to release-3.1

Signed-off-by: ti-srebot <[email protected]>

* Update tidb-faq.md

Co-authored-by: tiancaiamao <[email protected]>
Co-authored-by: TomShawn <[email protected]>
ti-srebot added a commit that referenced this pull request Jul 3, 2020
* cherry pick #3577 to release-3.0

Signed-off-by: ti-srebot <[email protected]>

* Update tidb-faq.md

Co-authored-by: tiancaiamao <[email protected]>
Co-authored-by: TomShawn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1. translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants