mysql officially has a built-in test database

mysql officially has a built-in test database called employees, with more than 300,000 data and six tables. The GitHub link provided on the MySQL official website can be downloaded.
Official website address: https://dev.mysql.com/doc/employee/en/
github address: https://github.com/datacharmer/test_db

Official installation tutorial: https://dev.mysql.com/doc/employee/en/employees-installation.html

 

1. Upload the downloaded package to the server

2. Unzip

unzip test_db-master.zip -C 指定解压的目录

3. Go to the unzipped directory test_db-master

cd test_db-master/

4. Import data

# 通过root进行导入、在下面的代码后键入当前数据库的密码即可导入
mysql -t <employees.sql -u root -p

Guess you like

Origin blog.csdn.net/qq_26896085/article/details/104843889