MySQL employees를 받아서 실습하자.
https://github.com/datacharmer/test_db
GitHub - datacharmer/test_db: A sample MySQL database with an integrated test suite, used to test your applications and database
A sample MySQL database with an integrated test suite, used to test your applications and database servers - datacharmer/test_db
github.com
받은 후 C 드라이버 밑에서 압축을 풀어 줍니다. (C 드라이버로 파일을 옮겨주세요)
: 파일 확인
명령 프로프트를 실행
1. 프롬프트 창에서 경로를 employees 로 이동해 주세요
// C: 드라이버 경로로 이동 후에 생성한 employees 폴더로 이동합니다.
cd ..
cd ..
cd emplopyees
2. 여기 경로에서 mysql server 에 접속합니다.
mysql -u root -p (mysql 루트 계정을 입력 후 비밀번호를 입력하는 명령어 입니다)
비밀번호 입력후 엔터 mysql 프로그램 안으로 들어오게 됩니다.
아래 명령어 입력하고 엔터를 눌러 주세요.
source employees.sql;
: 프로그램이 실행 될 동안 기다림
아래 명령어를 입력하고 employees 데이터 베이스가 등록 되었는지 확인해 주세요
show databases;
종료 방법
exit;
'MySQL > MySQL 기본' 카테고리의 다른 글
테이블 생성과 제약 사항 연습 - 6 (0) | 2024.05.31 |
---|---|
테이블에 데이터 입력 - 5 (0) | 2024.05.31 |
데이터베이스 모델링 - 4 (0) | 2024.05.31 |
데이터베이스 구축 절차 - 3 (1) | 2024.05.31 |
데이터베이스란 - 1 (0) | 2024.05.31 |