Getting Started with MySQL: Installation and First Database Setup
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
- Download the installer
- Go to
dev.mysql.com/downloads/installer. - Choose the appropriate operating system (Windows, macOS, Linux).
- Two installer options appear:
- MySQL Installer Community (full package, larger download)
- MySQL Installer Web Community (small stub, downloads components during install)
- The tutorial uses the full Community installer.
- Run the installer
- No need to create a MySQL account; click “No thanks, just start my download.”
- Save the
.exefile and launch it. - Select a setup type
- Keep the default Developer Default (includes server, Workbench, connectors, etc.).
- Click Next.
- Resolve any pre‑installation requirements
- If prompted, install the Microsoft Visual C++ Redistributable (or other listed packages).
- After installing required components, continue.
- Installation progress
- The installer downloads and installs the selected products (server, Workbench, connectors). This usually takes a few minutes.
Configuring the MySQL Server
- Server configuration – only the server needs explicit configuration.
- Connectivity – accept default port (3306) and protocol settings.
- Authentication method – choose Password (not legacy) and set a strong root password.
- Windows service – enable MySQL Server as a Windows service and set it to start automatically.
- Apply configuration – click Execute to finalize.
- 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
- Open a new SQL script
- In Workbench, click File → Open SQL Script and navigate to the
MySQL Beginner Seriesfolder. - Open the file named
parks_and_rec_create_DB.sql(available on the instructor’s GitHub). - Run the script
- Press the lightning‑bolt button (or
Ctrl+Shift+Enter). - The script creates a database called
parks_and_recand populates three tables with sample data. - The output shows 6 rows affected confirming successful execution.
- Refresh the schema list
- Click the refresh icon in the Schemas pane.
- The new
parks_and_recdatabase 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_dateand 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_recdatabase 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_recdatabase. - 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.