Installing MySQL on Windows - Classroom Handout
Objective
This handout guides you through installing MySQL Server and MySQL Workbench on a Windows
computer.
Step 1: Download the MySQL Installer
- Go to: https://dev.mysql.com/downloads/installer/
- Choose Web Installer (smaller file) OR Full Installer (includes all components)
- Click Download, then 'No thanks, just start my download.'
- Note: Save the file in an easy-to-access location.
Step 2: Run the Installer
- Right-click and choose 'Run as Administrator'
- Wait for the MySQL Installer to launch.
Step 3: Choose Setup Type
- Developer Default - Recommended
- Server only
- Full
- Custom
- Tip: Developer Default installs server + MySQL Workbench.
Step 4: Resolve Requirements
- Let the installer check for software requirements (like Visual C++).
- Click Execute to install missing dependencies.
- Click Next to continue.
Step 5: Install Components
- Click Execute to install MySQL server and tools.
- Wait for the installation to complete.
- Click Next.
Step 6: Configure MySQL Server
- Server Type: Select Standalone MySQL Server
- Network Configuration: Leave default Port 3306
- Authentication: Choose Use Strong Password Encryption
- Set Root Password: Create a strong password and write it down!
- Optional: Add more MySQL users
- Windows Service Setup: Check 'Configure as Windows Service' and optionally start MySQL at
system startup
- Apply Settings: Click Execute, then Finish
Step 7: Test the Installation
- Complete the product configuration.
- Launch MySQL Workbench.
- Log in using root and the password you created.
Step 8: You're Done!
- You now have MySQL installed and ready to use.
- Use MySQL Workbench for:
- - Running SQL queries
- - Managing databases
- - Designing schemas
Review Questions (Optional for Students)
- 1. What is the default port used by MySQL?
- 2. Which setup type is best for beginners?
- 3. Why is it important to remember the root password?
- 4. What tool helps you visually manage MySQL?