pingcap / tidb-docker-compose

Apache License 2.0
351 stars 155 forks source link

Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 35 #81

Closed renhaizhou closed 4 years ago

renhaizhou commented 4 years ago

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

macos

tennix commented 4 years ago

@renhaizhou What did you do to the cluster?

renhaizhou commented 4 years ago

did nothing

renhaizhou commented 4 years ago

docker-compose logs tikv0 Attaching to tidb-docker-compose_tikv0_1

tennix commented 4 years ago

Are all components running? You can verify this by docker-compose ps. Note: The logs are in the logs directory, so you cannot see logs by docker-compose logs or docker logs.

tennix commented 4 years ago

@renhaizhou Sorry for the late reply, is your problem solved? How did you fix it?

renhaizhou commented 4 years ago

I restarted a few times and then solved it, thank you

tennix commented 4 years ago

Great! I guess it may because Docker runs on macOS using Linux VM, which are not as stable as run natively on Linux machine.