MySQL官方测试库Employees Sample Database的介绍

许多同学在做MySQL数据库测试时苦于没有测试数据,除了线上导一小段数据、或者利用sysbench生成测试数据外,官方其实也提供了了一套名为:Employees Sample Database的测试库(该测试库含有6个表,总计4百万数据记录)

测试数据库导入文件下载:https://launchpad.net/test-db/

下载到的文件一般为:employees_VERSION.tar.bz2

  $ bunzip2 employees_VERSION.tar.bz2
  $ cd employees_VERSION
  $ mysql -t < employees.sql
  If something goes wrong, you can inspect the proceedings using
  the verbose output
  $ mysql -v -v -v -t < employees.sql

数据校验工具,分为md5和sha两种方式:

  $ mysql -t < test_employees_md5.sql
  $ mysql -t < test_employees_sha.sql


官方安装指南:

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



你可能感兴趣的:(MySQL)