02-08 13:28
Recent Posts
Recent Comments
Tags
- SQL
- ์คํฝ์ค๋น
- python
- ์คํฝ๋ ํ
- TSQL
- ์ด๋ธ์
- Naver Cloud
- ์กํ๊ณ
- ์๋ฐ
- appetizer
- ์จ์ผ๋ํ
- Spring
- ICT
- ํ์ด์
- ์๋์ด๋ ธ
- API MarketPlace ๊ธ๋ก๋ฒ ์ํฌํฐ์ฆ
- API๋ง์ผํ๋ ์ด์ค
- ํ์ด์ฌ
- linux
- RaspberryPi
- Java
- mysql
- DB
- ํ๋ก๋ณด๋ ธ
- DATABASE
- JOBํ๊ณ
- ํ์ด์๊ณต๋ชจ์
- ICT๋ฉํ ๋ง
- ๋ฐ์ดํฐ๋ฒ ์ด์ค
- ict๊ณต๋ชจ์
- Today
- Total
miinsun
[Docker] MySQL์ค์น ๋ณธ๋ฌธ
๐ป ์ค์ต ํ๊ฒฝ
OS : CentOS 8
Architecture : x89-64
๐ mysql image ๋ค์ด
$ docker pull mysql:8
๐ mysql image ์คํ
$ docker run --name mysql8 -e MYSQL_ROOT_PASSWORD=๊ด๋ฆฌ์๋น๋ฐ๋ฒํธ -p 3306:3306 -d mysql:8
๐ docker ์ํ ํ์ธ
$ docekr ps
๐ mySql ์คํ
$ docker exec -i -t mysql:8 mysql -u root -p
Enter password: <!-- ์์์ ์ค์ ํ ๋น๋ฐ๋ฒํธ ์
๋ ฅ-->
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.27 MySQL Community Server - GPL
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> ctrl + p + q <!-- mysql docker ์ข
๋ฃ -->
โ
'Infra > Docker' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Docker] Unable to find image ํด๊ฒฐ ๋ฐฉ๋ฒ (0) | 2021.11.25 |
---|---|
[Docker] /usr/local/bin/docker-compose: ํ๊ฐ ๊ฑฐ๋ถ ํด๊ฒฐ ๋ฐฉ๋ฒ (0) | 2021.11.25 |
Comments