Sign inSign up

palemoky/test-db

By palemoky

Updated 5 months ago

Employees sample database (~300k rows) pre-loaded for MySQL & PostgreSQL. Pull and query instantly.

Image
Developer tools
Data science
Databases & storage
0

681

palemoky/test-db repository overview

test-db — Employees Sample Database

Pre-built Docker images with the classic employees sample database already loaded. No setup needed — pull, run, and start querying in seconds.

Available Tags

TagDatabaseArchitectures
mysql-8.4MySQL 8.4linux/amd64 · linux/arm64
mysql-9.5MySQL 9.5linux/amd64 · linux/arm64
postgresql-16PostgreSQL 16linux/amd64 · linux/arm64
postgresql-17PostgreSQL 17linux/amd64 · linux/arm64

Quick Start

# MySQL 8.4
docker run -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=test palemoky/test-db:mysql-8.4
mysql -h 127.0.0.1 -P 3306 -uroot -ptest employees

# PostgreSQL 17
docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=test palemoky/test-db:postgresql-17
psql -h 127.0.0.1 -p 5432 -U postgres -d employees

Default Credentials

MySQLPostgreSQL
Userrootpostgres
Password(set via MYSQL_ROOT_PASSWORD)(set via POSTGRES_PASSWORD)
Databaseemployeesemployees

About the Data

The employees database contains ~300,000 employee records and ~2.8 million salary entries (167 MB uncompressed). It is widely used for:

  • Learning SQL and query optimization
  • Testing ORM frameworks and database drivers
  • Benchmarking database performance
  • Practicing backup and replication setups

Original data by Fusheng Wang & Carlo Zaniolo (Siemens Corporate Research).
Schema by Giuseppe Maxia · licensed under CC BY-SA 3.0.

Source

github.com/palemoky/test_db

Tag summary

Content type

Image

Digest

sha256:0ca8632e0

Size

186.6 MB

Last updated

5 months ago

docker pull palemoky/test-db:postgresql-16