1
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.

2021/03/18にCircle CIのMySQLのDocker ImageでMYSQL_USER=rootがNGになった

Last updated at Posted at 2021-03-18

概要

タイトルまんま

Docker Imageの修正内容

こちらのPR参照

対処方法

  • MYSQL_USER=rootがNGなのでそれを使わなければ良い
  • どこで見たか忘れたが、MySQLの一般ユーザーはパスワードが8文字以上じゃないとダメらしい
.circleci/config.yml
.
.
.
      - image: circleci/mysql:5.7-ram
        name: mysql
        environment:
          MYSQL_ALLOW_EMPTY_PASSWORD: 'false'
          MYSQL_DATABASE: 'test_db'
          MYSQL_PASSWORD: 'db_for_test'
          MYSQL_USER: 'hoge'

こんな感じでMYSQL_USER: 'root'をやめる

参照

1
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
1
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?