Skip to content

Can't connect using mysql client (using password: NO) #14021

@OuSatoru

Description

@OuSatoru

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. 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

  2. What did you expect to see?
    connect success

  3. What did you see instead?
    Access denied for user 'root'@'xx.xx.xx.xx' (using password: NO)

  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/questionThe issue belongs to a question.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions