본문 바로가기

DB

MySql 샘플 DB

구글에

mysql sample database 검색합니다.

그리고 아래 사이트에 들어갑니다.

https://dev.mysql.com/doc/employee/en/

 

MySQL :: Employees Sample Database

Employees Sample Database For legal information, see the Legal Notices. For help with using MySQL, please visit the MySQL Forums, where you can discuss your issues with other MySQL users. Document generated on: 2023-12-22 (revision: 77553)

dev.mysql.com

 

installation을 클릭합니다.

들어가면

3 Installation

The Employees database is available from Employees DB on GitHub. You can download a prepackaged archive of the data, or access the information through Git.

 

'Employees DB on GitHub'에 들어갑니다.

url을 복사합니다.

== git을 설치합니다.
yum install git

== /tmp/sql로 이동합니다.
cd /tmp/sql

== git을 이용하여 복제합니다.
git clone https://github.com/datacharmer/test_db.git

== test.db가 생성된 것을 볼 수 있습니다.
haksa.sql      kwamok.data  st.sql        student_sungjuk.tar  sungjuk.sql
haksa.sql.txt  kwamok.sql   student.data  sungjuk.data         test_db

== 
mysql < employees.sql

 

'DB' 카테고리의 다른 글

MariaDB/MySQL 뷰 백업/복원 가이드  (0) 2024.02.02
MariaDB/MySQL 뷰(View)  (2) 2024.02.02
Table 조인  (1) 2024.02.01
DB 생성과 정규화  (2) 2024.01.31
MySQL select문  (0) 2024.01.30