1
1

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 5 years have passed since last update.

Laradockでmysqlコンテナの立ち上げに失敗する

1
Last updated at Posted at 2018-05-07

環境

windows10
Laradock
docker-compose 1.21.1

エラー内容

docker-composeでmysqlを立ち上げたらエラーが出た

[ERROR] [MY-011071] [Server] /usr/sbin/mysqld: Error while setting value 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' to 'sql_mode'

対応

~/.laradock/data配下のデータを消す

my.cnfのNO_AUTO_CREATE_USERを外してビルドしなおすと正常起動する

もしくは
.envのMYSQL_VERSIONをlatest(現在8.0) → 5.7に変えると正常起動する

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?