LoginSignup
1

More than 5 years have passed since last update.

posted at

LaradockのMySQLにSequel Proでアクセスできない

Sequel ProでLaradockのMySQLにアクセスしようとすると、
ホストへの接続はできるのだが、DBにアクセスしようとするとエラーになってしまうケースの話。

結論から言うとLaradockデフォルトのMySQLバージョンが原因だった。

下記にもあるようにLaradockのMySQLのバージョンはデフォルトだと8.0になっている。
http://laradock.io/documentation/#change-the-mysql-version

しかし下記のissueにもあるように、Sequel Proの最新バージョン(1.1.2)では8.0に対応していない。
https://github.com/sequelpro/sequelpro/issues/2699
(1.2から対応予定とのこと)

laradockの.envでMySQLのVERSIONを変更し、Dockerを再構築することでSequel Proでアクセスできるようになった。
MYSQL_VERSION=5.7

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
What you can do with signing up
1