How to Install MySQL on macOS using Homebrew?
Commands for installing and running MySQL background service on macOS using Homebrew.
# Step 1: Install MySQL via Homebrew package manager brew install mysql # Step 2: Start MySQL background service brew services start mysql # Step 3: Connect to local MySQL instance mysql -u root
==> Downloading https://ghcr.io/v2/homebrew/core/mysql/manifests/8.0.36 ==> Successfully started `mysql` (label: homebrew.mxcl.mysql) Welcome to the MySQL monitor.