StackOverflow itself publishes a database that could be used for this kind of testing. It's a fast download using BitTorrent since there's a lot of seeders.

Answer from tadman on Stack Overflow
🌐
MySQL Tutorial
mysqltutorial.org › home › getting started with mysql › mysql sample database
MySQL Sample Database
December 29, 2023 - We use the classicmodels database as a MySQL sample database to help you work with MySQL quickly and effectively.
🌐
MySQL
dev.mysql.com › doc › employee › en
MySQL :: Employees Sample Database
Employees Sample Database · Download this Manual · PDF (US Ltr) - 97.4Kb PDF (A4) - 97.6Kb · Table of Contents · 1 Preface and Legal Notices · 2 Introduction · 3 Installation · 4 Validating the Employee Data · 5 Employees Structure · 6 License for the Employees Database ·
Discussions

sql - Where can I get a large sample database for practising MySQL query optimization - Stack Overflow
Can anyone give a reference to a substantially large sample database which I can import into MySQL to test and learn optimization and benchmarking? The database should have at least 6-8 tables with... More on stackoverflow.com
🌐 stackoverflow.com
can somebody recommend a good site to practice mysql?
Most DBMSes come with sample databases. You can write lots of interesting queries against them, and usually a tutorial accompanies the database in the documentation. For MySQL, there's the Employees sample database: https://dev.mysql.com/doc/employee/en/ and also the Sakila sample database: https://dev.mysql.com/doc/sakila/en/ Also: Kaggle is full of sample data: https://www.kaggle.com/ Wikipedia publishes all of the content of Wikipeida as SQL scripts for MySQL, plus as XML files. You can get that data (or subsets of it) and play around. Load a small one or a huge one, get to work writing queries on it. Here's a github repository with lots of interesting data sets: https://github.com/awesomedata/awesome-public-datasets FiveThirtyEight has lots of neat sets: https://data.fivethirtyeight.com/ There's a website called "Relational Data Set Repository" which has bunches of sets: https://relational.fit.cvut.cz/ data.world has more than 30 data sets: https://data.world/datasets/database Someone manages this git repository that lists some interesting sets: https://github.com/joschout/RelationalDatasets More on reddit.com
🌐 r/mysql
8
9
February 10, 2022
mysql - How to get a sample database to play around with for SQL on phpMyAdmin? - Stack Overflow
Sorry if this is a stupid question. I am currently trying to learn SQL through SoloLearn - http://www.sololearn.com/Play/SQL#. In this tutorial, they show you how to use different commands like S... More on stackoverflow.com
🌐 stackoverflow.com
Does a downloadable sample database exist?
Microsoft made several sample databases over the years, and most of them appear to be available for MySQL as well, keywords to search: Northwind, AdventureWorks, WideWorldImporters, Contoso, Sakila (native to MySQL) More on reddit.com
🌐 r/SQL
10
16
December 21, 2021
🌐
Devart
devart.com › dbforge › mysql › studio › mysql-sample-database.html
MySQL Sample Database - dbForge Studio Tutorial
Which one to choose depends on your preferences. Sakila is the most popular database for MySQL demonstrations. It has 16 tables, 7 views, 3 stored procedures, 3 stored functions, and 6 triggers.
🌐
NTU Singapore
www3.ntu.edu.sg › home › ehchua › programming › sql › SampleDatabases.html
MySQL Sample Databases
Reference: The "Classic Models" Retailer database of http://www.mysqltutorial.org. There are 8 tables, with no stored objects (view, procedure, function, trigger and event) defined. I made some modifications to the data type, and added in the foreign keys and indexes.
🌐
Quackit
quackit.com › mysql › tutorial › mysql_sample_database.cfm
MySQL Sample Database
Using a sample database is the quickest way to learn about MySQL. This article explains how to download and install the Sakila sample database. Uses MySQL Workbench to load and run the script.
🌐
W3Resource
w3resource.com › mysql-exercises
MySQL Exercises, Practice, Solution - w3resource
March 5, 2025 - MySQL is the world's most popular open-source relational database management system (RDBMS), known for its reliability, high performance, and scalability. It is a key component of the LAMP web stack. ... The best way to learn MySQL is through practice. This section is designed for beginners to advanced users to enhance their SQL skills with exercises. Happy Coding! ... More to Come ! ... Click here to get Northwind sample databases for Microsoft SQL Server.
Find elsewhere
🌐
GitHub
github.com › datacharmer › test_db
GitHub - datacharmer/test_db: A sample MySQL database with an integrated test suite, used to test your applications and database servers · GitHub
A sample MySQL database with an integrated test suite, used to test your applications and database servers - datacharmer/test_db
Starred by 4.4K users
Forked by 2.7K users
Languages   PLpgSQL 79.2% | Shell 20.8%
🌐
GitHub
github.com › hhorak › mysql-sample-db › blob › master › mysqlsampledatabase.sql
mysql-sample-db/mysqlsampledatabase.sql at master · hhorak/mysql-sample-db
Sample MySQL and MariaDB database data that can be used for upgrade testing - hhorak/mysql-sample-db
Author   hhorak
🌐
o7planning
o7planning.org › 10235 › sample-mysql-database-for-learning-sql
Sample MySQL Database for Learning SQL | o7planning.org
Copy content of LearningSQL-MySQL-Script.sql and execute in SQL window. Running successfully. LearningSQL is a small database simulating the data of a bank:
🌐
SQL Authority
blog.sqlauthority.com › home › mysql – download sample database – sakila, world, employee
MySQL - Download Sample Database - Sakila, World, Employee - SQL Authority with Pinal Dave
August 5, 2021 - The Sakila database was initially developed by Mike Hillyer, a former member of the MySQL AB documentation team, and is intended to provide a standard schema that can be used for examples in books, tutorials, articles, samples, and so forth.
🌐
MySQL
dev.mysql.com › doc › sakila › en
MySQL :: Sakila Sample Database
This document describes Sakila sample database installation, structure, usage, and history. For legal information, see the Legal Notices.
🌐
Reddit
reddit.com › r/mysql › can somebody recommend a good site to practice mysql?
r/mysql on Reddit: can somebody recommend a good site to practice mysql?
February 10, 2022 -

Hi! I'm learning mysql and I wanted to know if you know any page or couse where I could get a lot of good exercises with multiple tables. I have seen a few on google but they are not so convincing to me. Thanks!

🌐
GitHub
github.com › Azure-Samples › mysql-database-samples
GitHub - Azure-Samples/mysql-database-samples: View sample databases to build applications with MySQL · GitHub
June 15, 2026 - There are two sample database options for you to use: Polls database : Use this schema to create a polls application · Community tutorials from mysqltutorial.org - mysql sample database and also postgres version of the same database
Starred by 17 users
Forked by 27 users
🌐
Fill Database
filldb.info
Dummy data for MYSQL database
This application automatically generate database test data and allow to work and fill multiple mysql database tables. Generate test data for your database
🌐
Dataedo
dataedo.com › kb › databases › mysql › sample-databases
Sample MySQL databases - MySQL - Design & Metadata
October 2, 2018 - Article for: MySQL ▾ SQL Server Oracle database Snowflake Amazon Redshift SAP/Sybase ASE IBM DB2 PostgreSQL MariaDB · Sakila is MySQL sample database - a movie rental database with 16 tables, views, stored procedures, functions and triggers.
🌐
OneCompiler
onecompiler.com › mysql › 3zj3r8jjw
Sample Database - MySQL - OneCompiler
It's one of the robust, feature-rich ... compiler for MySQL. Getting started with the OneCompiler's MySQL editor is really simple and pretty fast. The editor shows sample boilerplate code when you choose language as 'MySQL' and start writing queries to learn and test online without worrying about tedious process of installation. MySQL is a open-source, free and very popular relational database management ...
🌐
GitHub
github.com › uwla › sample_mysql_database
GitHub - uwla/sample_mysql_database: W3Schools MySQL Tutorials Database CSV & SQL files · GitHub
This repository contains the database used in W3Schools SQL tutorials.
Starred by 18 users
Forked by 4 users