MySQL Community Server is the free, full-featured version of MySQL, perfect for learning and local development.
🧰 Before you start: Install Visual Studio Code (VS Code) from https://code.visualstudio.com/. We'll use VS Code to connect to MySQL during the course.
-
Under Select Operating System, choose macOS.
-
Download the latest macOS DMG Archive (the default Intel or ARM version depending on your Mac).
- 💡 If you’re on an Apple Silicon Mac (M1/M2/M3), choose the ARM64 DMG.
-
Open the downloaded
.dmgand follow the installer prompts.- Accept defaults unless you have a specific reason to change.
- During installation, you'll be asked to set a root password — note it down safely.
-
When installation finishes, you'll see a message about System Preferences → MySQL — you can manage the server from there (start/stop MySQL manually if needed).
Open Terminal and run:
mysql -u root -pEnter your password when prompted.
If you see a mysql> prompt — 🎉 you’re connected!
MySQL Workbench is a GUI tool to browse tables and run/administer SQL interactively. You can download it here: 👉 https://dev.mysql.com/downloads/workbench/
✅ Optional: If you can connect successfully before the course, that's great, as it gives us time to troubleshoot any hiccups!
-
Open Visual Studio Code.
-
Install the SQLTools extension. Here's a short video on how to install extensions in VS Code.
- This allows VS Code to connect to your databases.
-
Then install the SQLTools MySQL/MariaDB Driver.
-
In VS Code:
-
Open the SQLTools panel → click Add new connection.
-
Choose MySQL/MariaDB.
-
Use these settings:
Server: localhost Port: 3306 User: root Password: <your password> Database: (leave blank for now) -
Test the connection and Save.
-