5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Docker × MySQL8でエラー「MySQL said: Protocol mismatch; server version = 11, client version = 10」

Posted at

DockerでMySQL8を構築して、TablePlusで接続しようとするとタイトルのエラーが出た。

一応環境

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)

原因

どうやらクライアント側のポートを33060にするとエラーが起きるようだった。
ということで13306に変更してみたところ、接続ができた。

// docker-compose.yml

// 変更前
ports: 
  - 33060:3306

// 変更後
ports: 
  - 13306:3306

特に他に書くこともないので、以上!

5
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?