Content
SQL on Mac M4: What You Need to Know
Apple Silicon has introduced some friction when setting up SQL databases locally. PostgreSQL, MySQL, and SQLite all run natively on M4. SQL Server is the tricky one, but Docker makes it manageable.
Before You Start: Homebrew
PostgreSQL on Mac M4
Performance Tip
MySQL on Mac M4
SQL Server on Mac M4: Docker
Note the --platform linux/amd64 flag. SQL Server runs under Rosetta emulation on M4.
SQLite on Mac M4
Already installed on macOS. Zero setup needed.
GUI Tools
TablePlus — Supports all databases. Native Apple Silicon.
DBeaver — Free, open source.
Azure Data Studio — Best for SQL Server.
The Alternative: Skip Local Setup
AI2SQL lets you connect your database and write SQL from any browser on your M4 Mac without any local configuration.
Troubleshooting
Homebrew: Make sure you use ARM64 at /opt/homebrew, not x86 at /usr/local
PostgreSQL: Check logs at /opt/homebrew/var/log/postgresql@16.log
SQL Server Docker: Requires strong password and 4GB RAM in Docker settings
MySQL socket errors: mysql -u root -p --socket=/tmp/mysql.sock


