我是靠谱客的博主 欢喜长颈鹿,这篇文章主要介绍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官方测试库Employees Sample Database的介绍的全部内容,更多相关MySQL官方测试库Employees内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(60)

评论列表共有 0 条评论

立即
投稿
返回
顶部