Set up MySQL on your MacBook Pro with the M1 (Apple Silicon). I'll give you the step-by-step installation methods. You can choose whichever suits you best:
✅ Method 1: Install MySQL using Homebrew (Recommended)
This is the easiest and cleanest way.
-
Install Homebrew (if not already installed):
Open Terminal and run:
Install MySQL:
-
Start MySQL service:
-
Check MySQL status:
-
Login to MySQL:
-
(Optional) Set root password:
✅ Method 2: Install MySQL using the official DMG installer
If you prefer GUI setup:
-
Go to MySQL Community Downloads.
-
Select macOS (ARM64) for M1.
-
Download the DMG Archive and install it like a normal app.
-
During installation, it will ask you to set a root password → save it.
-
After installation, open System Preferences → MySQL to start/stop MySQL.
-
Test installation:
✅ Method 3: Install via Docker (for isolated setup)
If you use Docker:
-
Install Docker Desktop for Mac (Apple Silicon).
-
Run MySQL container:
-
Connect:
🔍 Verify Installation
Run:
You should see something like:
Comments
Post a Comment