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

【Laradock】Mysqlの設定変更を反映させたい。

Posted at

①mysqlの情報を変更する。
laradockの.envファイルを書き換えるなり、MysqlのDockerファイルを書き換えるなり。

②docker-compose.ymlのMysql句に書かれている

volumes:
- ${DATA_PATH_HOST}/mysql:/var/lib/mysql

にあたるデータを削除する。
ここにMYSQLのコンテナ情報が詰まっている。

docker-compose build --no-cache mysqlを実行する

反映されていると思う。

参考資料
https://github.com/laradock/laradock/issues/1260

殴り書きなのであとで書き直すと思います。

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