Skip to content

ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0 #100

Closed
@yahonda

Description

@yahonda

Steps to reproduce

git clone https://github.com/pingcap/tidb-docker-compose.git
cd tidb-docker-compose && docker-compose pull # Get the latest Docker images
docker-compose up -d
mysql -h 127.0.0.1 -P 4000 -u root

Expected behavior

It connect to TiDB Server and the mysql> prompt should appear.

Actual behavior

It always gets this error.

% mysql -h 127.0.0.1 -P 4000 -u root
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0

Environment

macOS Monterey 12.1

% uname -a
Darwin yahondambp.local 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 x86_64
% docker -v
Docker version 20.10.11, build dea9396
% docker-compose -v
docker-compose version 1.29.2, build 5becea4c
% docker images |grep -i pingcap
pingcap/tispark       latest    c18bd7ca57d9   24 hours ago   636MB
pingcap/tidb          latest    778bf9e1e051   8 months ago   145MB
pingcap/tikv          latest    6e34b1d95950   8 months ago   355MB
pingcap/pd            latest    d55858ba1d82   8 months ago   151MB
pingcap/tidb-vision   latest    e9b25d9f7bdb   3 years ago    47.6MB
%

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions