Chap 02.MySQL 설치 및 샘플 DB 받기 (workbench)
https://dev.mysql.com/downloads/mysql/
MySQL :: Download MySQL Community Server
Select Operating System: Select Operating System… Microsoft Windows Ubuntu Linux Debian Linux SUSE Linux Enterprise Server Red Hat Enterprise Linux / Oracle Linux Fedora Linux - Generic Oracle Solaris macOS Source Code Select OS Version: All Windows (x86
dev.mysql.com
MySQL은 여기서 다운 받는다.
Go to Download Page를 눌러서 들어가고
모든게 들어가있는 아래(용량큰거)를 다운로드 하자.
root 비밀번호는 편할대로 하는 대신, 까먹으면 안된다 -_-
그리고 이제 이 교재에서 사용하는 샘플 데이터베이스를 다운받으러 가본다.
https://cafe.naver.com/thisismysql/4
[MySQL 5.7] 샘플 데이터베이스(employee)
아래 링크를 클릭http://download.hanbit.co.kr/mysql/5.7/employees.zip
cafe.naver.com
이걸 이제 C에다가 압축을 풀고, cmd를 켜본다.
cmd를 검색하고 오른쪽버튼을 눌러서 관리자 권한으로 실행하기.
여기서 CD \employees라고 입력하면 employees로 위치가 바뀐다.
mysql -u - root- -p를 누르고 엔터치면 MySQL 설치시 기억해뒀던 비밀번호를 입력
그러면 이렇게 뜬다.
source emplyoees.sql;
입력해보면 쿼리문이 뜨면서 쭉 뭔가 실행된다.
(시간이 꽤 걸린다 -_-;)
이제 show databases; 라고 입력해서 확인해보면
employees가 있는것을 발견할 수 있다.
exit면 SQL을 종료한다.