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?

Mysql環境構築

Posted at

Docker DesctopでMysql環境構築

コンテナイメージを取得する
https://hub.docker.com/_/mysql

以下、コマンドを入力
docker pull mysql

imagesに「mysql」が表示される
image.png

docker-compse.ymlの設定が上手く行かなかったので、コマンドでMysqlを起動

docker run -d --name my-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -e MYSQL_USER=user -e MYSQL_PASSWORD=password -v ./my-mysql-data:/var/lib/mysql mysql:latest

DBが作成されたか、A5M2で確認
image.png

問題なし

来週はデーターベース、テーブルの作成を行う

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?