01-07 02:28
Recent Posts
Recent Comments
Tags
- Naver Cloud
- ํ์ด์
- ์จ์ผ๋ํ
- API MarketPlace ๊ธ๋ก๋ฒ ์ํฌํฐ์ฆ
- ๋ฐ์ดํฐ๋ฒ ์ด์ค
- ํ๋ก๋ณด๋ ธ
- ํ์ด์ฌ
- ์๋ฐ
- python
- linux
- ์คํฝ์ค๋น
- API๋ง์ผํ๋ ์ด์ค
- DATABASE
- ์กํ๊ณ
- ํ์ด์๊ณต๋ชจ์
- ICT
- JOBํ๊ณ
- TSQL
- SQL
- ์คํฝ๋ ํ
- mysql
- RaspberryPi
- DB
- ์๋์ด๋ ธ
- Java
- appetizer
- ict๊ณต๋ชจ์
- ์ด๋ธ์
- Spring
- 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