您的位置:首页 > 数据库 > MySQL

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

2017-09-21 15:56 561 查看
许多同学在做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