Bug Report
Please answer these questions before submitting your issue. Thanks!
-
What did you do?
If possible, provide a recipe for reproducing the error.
connect using mysql -h x.x.x.x -P 4000 -u root -p mysql -h x.x.x.x -P 4000 -u root -p mypassword mysql -h x.x.x.x -P 4000 -u root -pmypassword
-
What did you expect to see?
connect success
-
What did you see instead?
Access denied for user 'root'@'xx.xx.xx.xx' (using password: NO)
-
What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
Release Version: v3.0.7
Git Commit Hash: 84e4386
Git Branch: HEAD
UTC Build Time: 2019-12-04 10:08:24
GoVersion: go version go1.13 linux/amd64
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
mysql -V
mysql Ver 8.0.17 for Linux on x86_64 (MySQL Community Server - GPL)
Can connect when tidb installed without password.
Can't connect after set password with SET PASSWORD FOR 'root'@'%' = 'xxx';
Can connect using database tools like DataGrip.
Bug Report
Please answer these questions before submitting your issue. Thanks!
What did you do?
If possible, provide a recipe for reproducing the error.
connect using
mysql -h x.x.x.x -P 4000 -u root -pmysql -h x.x.x.x -P 4000 -u root -p mypasswordmysql -h x.x.x.x -P 4000 -u root -pmypasswordWhat did you expect to see?
connect success
What did you see instead?
Access denied for user 'root'@'xx.xx.xx.xx' (using password: NO)
What version of TiDB are you using (
tidb-server -Vor runselect tidb_version();on TiDB)?Release Version: v3.0.7
Git Commit Hash: 84e4386
Git Branch: HEAD
UTC Build Time: 2019-12-04 10:08:24
GoVersion: go version go1.13 linux/amd64
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
mysql -V
mysql Ver 8.0.17 for Linux on x86_64 (MySQL Community Server - GPL)
Can connect when tidb installed without password.
Can't connect after set password with
SET PASSWORD FOR 'root'@'%' = 'xxx';Can connect using database tools like DataGrip.