DEV Community

Adela for Bytebase

Posted on

2 1

Import sample database into AWS RDS MySQL using Shell & Workbench

Bytebase open-sourced an Employee sample database for MySQL https://github.com/bytebase/employee-sample-database-mysql with two variations: A Full dataset (~170 MB) including 300024 employee records and a Small dataset (~6 MB) including 10000 employee records.

My task was straightforward - import the small dataset into our AWS instances for demo usage.

To start, I downloaded and unzipped the file.

image.png

And opened the dataset_small.
image.png

MySQL Shell

I would strictly follow the Installation instructions in Readme.

image.png

As a prerequisite, MySQL Shell was installed.

image.png

However, after installation, I still got this error - "MySQL command not found", where was the execution file?

image.png

I tried to connect to my AWS MySQL instance, and it worked!

image.png

Ensure I was under the "dataset_small" folder, then run the following -- succeeded!

mysql.png

MySQL Workbench

As MySQL Workbench was already installed locally, I would try it as well. I connected it to AWS MySQL instance Dev.

image.png

image.png

And let's import the data.

image.png

image.png

image.png

image.png

API Trace View

Struggling with slow API calls?

Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay