Error "MySQL said: Protocol mismatch; server version = 11, client version = 10" in Docker x MySQL8

When I built MySQL8 with Docker and tried to connect with TablePlus, I got a title error.

Environment

Docker version 19.03.12 docker-compose version 1.24.0 mysql Ver 8.0.21 for Linux on x86_64 (MySQL Community Server - GPL)

Cause

Apparently an error occurred when I set the client side port to 33060. So when I changed it to 13306, I was able to connect.

// docker-compose.yml

//Change before
ports: 
  - 33060:3306

//After change
ports: 
  - 13306:3306

I don't have to write anything else, so that's it!

Recommended Posts

Error "MySQL said: Protocol mismatch; server version = 11, client version = 10" in Docker x MySQL8
npm error in docker tutorial
Error handling in gRPC (Kotlin version)
Check MySQL logs in Docker environment