Step-by-Step Sakila Database Import in MySQL Workbench

|
Facebook
Sakila Database Import in MySQL Workbench

Introduction

In this guide, you will understand the Sakila database import in MySQL Workbench step-by-step guide thoroughly.

If you want to practice MySQL, the Sakila database is a great place to start. It comes with real-world tables like customers, films, and rentals, which makes learning SQL much easier.

Prerequisites for the Sakila database import

Before starting the process, make sure you have.

1. How to Install MySQL Workbench in Windows. (Included MySQL Workbench download)

2. How to Install the Sakila Database in MySQL.

3. Sakila database files (sakila-schema.sql and sakila-data.sql)

Import of the Sakila database in MySQL Workbench

We need to open the tool after the MySQL Workbench download on the Windows machine.

Import of the Sakila database in MySQL Workbench
Sakila Database Import in MySQL Workbench

Test Connection Output

Test Connection Output

We can create the Sakila database by using the command below in MySQL Workbench.

Create the Sakila database

Now we can import the schema file to create the structure, and later we can use the data file to insert the data.

Go to Server ==> Click Data Import ==> Choose Import from Self-Contained File ==> Choose Sakila as Default Target Schema ==> Change tab from Import from disk to Import Progress ==> Click Start Import

Import the Schema File

Start Import of Schema File

Start Import of Sakila Schema

Schema File Import Status

Schema File Import Completed

This step helps insert the data into the structure we created in the previous step.

Import the Data File

Start Import of Data File

Start Import of Data File

Data File Import Status

Data File Import Status

Data check output

We can check the output of one of the tables to make sure the data has been inserted properly.

Data check output

Conclusion

In this guide, we have seen a step-by-step Sakila Database Import in MySQL Workbench, which is very simple when you follow the right steps. Once imported, you can start practicing SQL queries, joins, and real-world scenarios easily.

If you enjoyed the article, please leave a comment and share it with your friends. Also, let me know which Oracle and MySQL topics you'd like to see covered in future articles.

Note: – If you want to practice this whole activity in your home lab, then you'll need a platform to perform the installation. To set that up, you first need to download and install Oracle VirtualBox, followed by the operating system, the MySQL binary software, and finally, MySQL server creation.

1. How to Install the Sakila Database in MySQL

2. How to Install MySQL Workbench in Windows

3. MySQL Server Installation Using Generic Binary

4. Start the MySQL server as a service

5. Storage engines in MySQL

DBAStack

I’m a database professional with more than 10 years of experience working with Oracle, MySQL, and other relational technologies. I’ve spent my career building, optimizing, and maintaining databases that power real-world applications. I started DBAStack to share what I’ve learned — practical tips, troubleshooting insights, and deep-dive tutorials — to help others navigate the ever-evolving world of databases with confidence.

Leave a Comment