로딩
요청 처리 중입니다...

docker mysql 설치

 docker  mysql 설치

docker-compsoe.yml version: "3" services: db: image: mysql:8.0.26 restart: always volumes: - ./mysqldb:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=123456789a - MYSQL_DATABASE=JISUNG2022 ports: - "3306:3306" 위 스크립트로 yml 파일을 만든 후 docker-compose up 해준다. mysql 들어가기 ubuntu@ip-172-35-35-35:~$ docker exec -it PID /bin/bash root@6632161d23ef:/# mysql -u root -p Enter password: Welcome to the MySQL monitor.

Commands end with ; or \g. Your MySQL connection id is 560 Server version: 8.0.26 MySQL Comm...

# mysql

원문 링크 : docker mysql 설치