Getting Started with MySQL: Installation and First Database Setup

 4 min read

YouTube video ID: wgRwITQHszU

Source: YouTube video by Alex The AnalystWatch original video

PDF

Introduction

In this article we walk through the very first lesson of a comprehensive MySQL tutorial series. The lesson focuses on installing MySQL, configuring the server, and creating a starter database that will be used throughout the beginner, intermediate, and advanced tracks.

Course Overview

  • The full tutorial is split into three parts: Beginner, Intermediate, and Advanced.
  • The instructor also offers three paid courses on analystbuilder.com:
  • MySQL Crash Course (interview prep)
  • Full MySQL Course (basic to intermediate)
  • Advanced MySQL Course (deep‑dive for analysts)
  • Links to these courses are provided in the video description.

Installing MySQL

  1. Download the installer
  2. Go to dev.mysql.com/downloads/installer.
  3. Choose the appropriate operating system (Windows, macOS, Linux).
  4. Two installer options appear:
    • MySQL Installer Community (full package, larger download)
    • MySQL Installer Web Community (small stub, downloads components during install)
  5. The tutorial uses the full Community installer.
  6. Run the installer
  7. No need to create a MySQL account; click “No thanks, just start my download.”
  8. Save the .exe file and launch it.
  9. Select a setup type
  10. Keep the default Developer Default (includes server, Workbench, connectors, etc.).
  11. Click Next.
  12. Resolve any pre‑installation requirements
  13. If prompted, install the Microsoft Visual C++ Redistributable (or other listed packages).
  14. After installing required components, continue.
  15. Installation progress
  16. The installer downloads and installs the selected products (server, Workbench, connectors). This usually takes a few minutes.

Configuring the MySQL Server

  1. Server configuration – only the server needs explicit configuration.
  2. Connectivity – accept default port (3306) and protocol settings.
  3. Authentication method – choose Password (not legacy) and set a strong root password.
  4. Windows service – enable MySQL Server as a Windows service and set it to start automatically.
  5. Apply configuration – click Execute to finalize.
  6. Optional components – samples & examples can be installed, but they are not required for the tutorial.

Launching MySQL Workbench

  • After installation, the Workbench opens automatically.
  • The main screen shows a Local Instance MySQL connection – this is the server running on your machine.
  • Clicking the connection opens the SQL editor where you will write and run queries.

Creating the Starter Database

  1. Open a new SQL script
  2. In Workbench, click File → Open SQL Script and navigate to the MySQL Beginner Series folder.
  3. Open the file named parks_and_rec_create_DB.sql (available on the instructor’s GitHub).
  4. Run the script
  5. Press the lightning‑bolt button (or Ctrl+Shift+Enter).
  6. The script creates a database called parks_and_rec and populates three tables with sample data.
  7. The output shows 6 rows affected confirming successful execution.
  8. Refresh the schema list
  9. Click the refresh icon in the Schemas pane.
  10. The new parks_and_rec database appears with its tables (employee_demographics, employee_salary, etc.).

Exploring the Data

  • Right‑click a table (e.g., employee_demographics) → Select Rows – Limit 1000.
  • Workbench generates and runs SELECT * FROM parks_and_rec.employee_demographics;.
  • The result grid displays columns such as employee_id, first_name, last_name, age, gender, birth_date and the corresponding rows.
  • Executing queries:
  • The lightning bolt with a small “i” runs the entire script.
  • The lightning bolt with a “▶” runs only the highlighted statement.
  • You can close the SQL Additions panel (the small “+” button) if you don’t need it for the series.

Next Steps

  • The next lesson will dive into basic SELECT statements, filtering, and ordering data using the tables you just created.
  • Keep the Workbench open and the parks_and_rec database ready for hands‑on practice.

Summary of Key Actions

  • Download and install MySQL Community Installer (Developer Default).
  • Resolve any Visual C++ redistributable requirements.
  • Configure the server with a password and set it as a Windows service.
  • Open MySQL Workbench, connect to the local instance, and run the provided SQL script to create the parks_and_rec database.
  • Verify the tables and sample data via the Select Rows feature.

Conclusion

The essential takeaway is that after a straightforward installation and configuration of MySQL and Workbench, you now have a fully functional local MySQL server with a ready‑to‑use sample database. This foundation lets you focus on learning SQL queries in the upcoming lessons without worrying about setup complexities.

You can now write and run SQL queries against a locally installed MySQL server and a pre‑populated sample database, so you’re fully prepared to start learning MySQL without any further installation steps.

Frequently Asked Questions

Who is Alex The Analyst on YouTube?

Alex The Analyst is a YouTube channel that publishes videos on a range of topics. Browse more summaries from this channel below.

Does this page include the full transcript of the video?

Yes, the full transcript for this video is available on this page. Click 'Show transcript' in the sidebar to read it.

PDF