1. ๋ค์ด๋ก๋
MySQL ํํ์ด์ง ์ ์ - Download
- ์ ค ๋ฐ์ MySQL Community (GPL) Downloads ยป ํด๋ฆญ
- MySQL Installer for Windows ์ ํ - 8.0.17๋ฒ์ (393.4M)์ผ๋ก ๋ค์ด

2. ์ค์นํ๊ธฐ
- Choosing a Setup Type -> Custom ์ ํํ๊ณ Next>

- MySQL Servers โ> MySQL Server 8.0 - x64
- Applications โ> MySQL Workbench 8.0 - x64
- Documentation โ> Samles and Examples 8.0 - x86
์ ํํ์ฌ ์์ผ๋ก ์ด๋์ํค๊ณ Next>

- ์ค์นํ ํ์ผ ํ์ธ ํ Executeํด๋ฆญ -> Next>

- ํญ๋ชฉ ํ์ธ ํ Next>

3. ํ๊ฒฝ์ค์
- High Availability -> Standalone MySQL Server / Classic MySQL Replication ์ ํ ํ Next>

- Development Computer์ ํ : MySQL ์ธ์๋ ์ฌ๋ฌ ํ๋ก๊ทธ๋จ์ ์ฌ์ฉํ๋ ์ปดํจํฐ
- TCP/IP ์ฒดํฌ ๋ฐ Port๋ฒํธ ๊ธฐ์ต / Open Windows Firewall ports for network access ์ฒดํฌ => ์ธ๋ถ ์ปดํจํฐ์์ ์ ๊ทผํ ์ ์๋๋ก [Windows ๋ฐฉํ๋ฒฝ]์ ํฌํธ๋ฅผ ํ์ฉํจ

- Authentication Method โ [Use Strong Password...] ์ ํ๋ ์ํ์์ Next>

- Accounts and Roles โ MySQL ๊ด๋ฆฌ์(root)์ ๋น๋ฐ๋ฒํธ ์ง์ ํ Next>

- Windows Service Name : MySQL๋ก ์ง์ ํ Next>

- Apply Configuration โ Execute ํด๋ฆญ ํ ์ค์ ๋ด์ฉ ์ ์ฉ ํ Finish

- Product Configuration โ Samples and Examples ์ค์ ์งํ์ ์ํด Next>

- Username๊ณผ Password ์
๋ ฅ ํ Check ํด๋ฆญ ์ ์ฐ๊ฒฐ ์ฑ๊ณต ๋ฉ์์ง ํ์ธ ํ Next>

- Apply Configuration โ Execute ํด๋ฆญ ํ ์ค์ ๋ด์ฉ ์ ์ฉ๋๋ฉด Finish

- Product Configuration โ ํ๊ฒฝ ์ค์ ์๋ฃ ํ Next>
- Installation Complete โ Finish๋ฅผ ํด๋ฆญํด์ MySQL ์ค์น ์๋ฃ!!

- Window [์์] ๋ฉ๋ด์์ MySQL ์ค์น ํ์ธ

1. MySQL์ ์คํ ํ์ผ์ด ์๋ ๊ฒฝ๋ก Path์ ์ถ๊ฐํ๊ธฐ
- C: - Program Files - MySQL - MySQL Server 8.0 - bin
-> ์ด๋ ํ ์ฃผ์ ํ์ ์ค ๋ณต์ฌ

- Windows์ [์์]์์ - [Windows PowerShell(๊ด๋ฆฌ์)] ์คํ
- cmd ์
๋ ฅ : ๋ช
๋ น ํ๋กฌํํธ๋ก ์ ํ
- Path ์ถ๊ฐ : SETX PATH โC:\Program Files\MySQL\MySQL Server 8.0\bin;%PATH%โ
=> ์ฌ๋ถํ
ํ๊ธฐ!!
* SETX PATH = ํ๊ฒฝ๋ณ์ ์ ์ฅ

2. MySQL ๋ช
๋ นํ๋กฌํํธ ์ฌ์ฉํ๊ธฐ
1) ๋ช
๋ นํ๋กฌํํธ(cmd)์ฐฝ ์ด๊ธฐ
2) ์ค์น๋ MySQL ๋ฒ์ ํ์ธ
=> mysql --version
3) MySQL ์ ์ํ๊ธฐ
=> mysql -u root -p

3) MySQL ๋ช
๋ น์ด ํ
์คํธ
(1)help ๋ช
๋ น์ด

(2) show databases ๋ช
๋ น์ด

3. MySQL Workbench ์ฌ์ฉํ๊ธฐ






1. employees ๋ฐ์ดํฐ๋ฒ ์ด์ค(์คํค๋ง) ์ค์น
- employees.zip ํ์ผ์ C๋๋ผ์ด๋ธ์์ ์์ถ ํ๊ธฐ
- Windows์ [์์]์์ ์ค๋ฅธ์ชฝ ๋ง์ฐ์ค ํด๋ฆญ - [Windows PowerShell(๊ด๋ฆฌ์)] ์คํ

2. hr ๋ฐ์ดํฐ๋ฒ ์ด์ค(์คํค๋ง) ์ค์น(๋์ผ ๋ฐฉ์)
- hr.zip ํ์ผ์ C๋๋ผ์ด๋ธ์์ ์์ถ ํ๊ธฐ
- Windows์ [์์]์์ ์ค๋ฅธ์ชฝ ๋ง์ฐ์ค ํด๋ฆญ - [Windows PowerShell(๊ด๋ฆฌ์)] ์คํ

3. ๋ฐ์ดํฐ๋ฒ ์ด์ค ํ์ธ



- C:\ProgramData\MySQL\MySQL Server 8.0\Data๋ก ์ด๋
- ProgramData ํด๋ ์๋ณด์ด๋ ๊ฒฝ์ฐ [๋ณด๊ธฐ]-[์จ๊ธด ํญ๋ชฉ] ์ฒดํฌ ์ ๋ํ๋จ.
