await icon indicating copy to clipboard operation
await copied to clipboard

Support for MySQL 8.0

Open mathieujobin opened this issue 4 years ago • 2 comments

I am using await on CI to wait for MySQL to be ready before starting the tests run. Now trying to upgrade my app to support MySQL 8.0

I wonder if anything easy can be done for await to work with MySQL 8?


[2020-07-06T07:32:06Z] Waiting for mysql
--
  | [2020-07-06T07:32:06Z] await "mysql://root:root@db:3306/main"
  | [2020-07-06T07:33:06Z] 2020/07/06 07:33:06 Resource unavailable: this authentication plugin is not supported
  | [2020-07-06T07:33:06Z] 2020/07/06 07:33:06 Timeout exceeded
  | [2020-07-06T07:33:06Z] rake aborted!
  | [2020-07-06T07:33:06Z] Command failed with status (1): [await "mysql://root:root@db:3306/main"...]
  | [2020-07-06T07:33:06Z] /app/CI.rake:16:in `block (2 levels) in <top (required)>'

mathieujobin avatar Jul 06 '20 08:07 mathieujobin

The solution here could to upgrade the MySQL Go driver to 1.4.0+ https://github.com/go-sql-driver/mysql/releases/tag/v1.4.0

djui avatar Jul 06 '20 09:07 djui

interesting, but the lock I am seeing in https://github.com/betalo-sweden/await/blame/master/Gopkg.toml

seems to already be after 1.4.0

https://github.com/go-sql-driver/mysql/commit/bc14601d1bd56421dd60f561e6052c9ed77f9daf

mathieujobin avatar Jul 06 '20 09:07 mathieujobin