๐ ์ธํ๋ฐ์ "์๊ฐํ๋ ๋ชจ๋ธ๋ง"์ ์๊ฐํ๊ณ ์ ๋ฆฌํ ๋ธ๋ก๊ทธ์ ๋๋ค.
#0 MySQL ์ค์น
DBMS๋ฅผ ์ฌ์ฉํ๋ ์ด์ ?
- File System์ ๋ฐ์ดํฐ๋ฅผ ํ์ผ์ ๊ด๋ฆฌํฉ๋๋ค. ์ด์ ์ฌ์ฉ์๊ฐ ๋ฐ์ดํฐ ๊ด๋ฆฌ ๋ฐ ์กฐ์์ ์ฝ๊ฒ ํ๊ธฐ ์ํด DBMS๋ฅผ ํตํด ๋ฐ์ดํฐ ๊ด๋ฆฌ ๋ฐ ์กฐ์์ ์ํํฉ๋๋ค.
- SQL์ ์ฌ์ฉํ์ฌ ๋ฐ์ดํฐ๋ฅผ CRUDํ ์ ์์ต๋๋ค.
1. MySQL Community Server ์ค์น
8.x ๋ฒ์ ์ผ๋ก ์ค์น
https://dev.mysql.com/downloads/mysql/
ํ์๋ M3 ์ด๋ฏ๋ก, ARM ์ผ๋ก ์ค์น
- ํ์๊ฐ์ ์ ํ์ X
- ๋ค์ด ํ, ๋์ & ๊ณ์
- ๋น๋ฒ์ ์์ผ๋ฉด ์ ๋ฉ๋๋ค!!
2. MySQL WorkBench ์ค์น
https://dev.mysql.com/downloads/workbench/
- ์ค์น
- ์ค์น๋ Workbench ์คํ
- 3306 ํฌํธ๋๋ฒ๋ก Local์ด ์์ฑ๋์๋ค๋ฉด ์๋ฃ์ ๋๋ค!!
3. Connection test
- ์ฐ๊ฒฐ์ด ์ ๋๋์ง ํ์ธํด๋ณผ๊ฒ์!
- [Successfully made the MySQL connection] ๋์ค๋ฉด ์ฐ๊ฒฐ ํ์ธ๊น์ง ์ฑ๊ณต์ ๋๋ค!!
๊ทธ๋ค์
๊ทธ๋ฌ๋ฉด, MySQL ์ํฌ๋ฐด์น๋ก ๋ค์ด๊ฐ๊ฒ ๋ฉ๋๋ค.
์ด์
- SQL
- DB
๋ค๋ฃฐ ์ ์๊ฒ ๋ฉ๋๋ค!
ํฐ๋ฏธ๋๋ก ์คํํ๊ธฐ
ํฐ๋ฏธ๋๋ก ์คํํ๊ธฐ
- cd /usr/local/mysql/bin : MySQL ํ์ผ ๋ค์ด๋ก๋ ํ ํ์ผ ์์น๋ก ์ ์
- ./mysql -u root -p : MySQL ์ ์ํ๊ธฐ (**Enter password๋ MySQL ํ์ผ ๋ค์ด๋ฐ์ผ๋ฉด์ ์ค์ ํ ๋น๋ฐ๋ฒํธ)
** MySQL ํ์ผ์์น๋ก ์ ์ ์ํ๊ณ ๋ฐ๋ก ./mysql ... ๋ช ๋ น์ด ์น๋ฉด ์๋ ์๋จ
** ๋ค๋ฅธ ๋ธ๋ก๊ทธ๋ค์ ์ฐพ์๋ณด๋ฉด ํฐ๋ฏธ๋ ์คํ ๋ช ๋ น์ด๊ฐ mysql.server start ์ธ๋ฐ, ์ ๋ช ๋ น์ด๋ ์ ๋จนํ์ต๋๋ค...
์ด์ ๋ชจ๋ธ๋ง ๊ณผ์ ์ ๊ฑฐ์ณ์ ์งํํ๋ฉด ๋ฉ๋๋ค~~!!
์ฐธ๊ณ
'๐ฉ๐ปโ๐ป Back-end > Modeling & SQL' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[DB] ๋ฌผ๋ฆฌ์ ๋ฐ์ดํฐ ๋ชจ๋ธ๋ง(ERD) #4 (0) | 2024.09.19 |
---|---|
[DB] ๋ ผ๋ฆฌ์ ๋ฐ์ดํฐ ๋ชจ๋ธ๋ง(ERD) #3 (0) | 2024.07.31 |
[DB] ๊ฐ๋ ์ ๋ฐ์ดํฐ ๋ชจ๋ธ๋ง(ERD) #2 (0) | 2024.07.30 |
[DB] ๋ฐ์ดํฐ๋ฒ ์ด์ค ์๊ตฌ์ฌํญ ๋ถ์ #1 (0) | 2024.07.10 |
[Oracle] DB ๊ด๋ จ ๊ณต๋ถ ์ฌ์ดํธ (0) | 2024.06.04 |