π Read the Blog Post
# Step 1: Install MySQL
brew install mysql
# Step 2: Start MySQL temporarily
brew services run mysql
# Step 3: Run secure installation
# For ARM64 (Apple Silicon)
/opt/homebrew/opt/mysql/bin/mysql_secure_installation
# For Intel
/usr/local/opt/mysql/bin/mysql_secure_installation
# During setup:
# - Skip VALIDATE PASSWORD COMPONENT
# - Set root password
# - Remove anonymous users β Yes
# - Disallow root login remotely β Yes
# - Remove test database β Yes
# - Reload privilege tables β Yes
# Step 4: Stop MySQL when done
brew services stop mysql