How to Install PostgreSQL 19 on macOS
Install PostgreSQL 19 on a Mac with the official EDB installer, add its tools to Terminal and connect with psql. Every screen and command is shown, with real output.
- Database
- Operating Systems
- Mac
Install PostgreSQL 19 on a Mac with the official EDB installer, add its tools to Terminal and connect with psql. Every screen and command is shown, with real output.
Install Valkey Admin, the official desktop app for Valkey, on a Mac with one Homebrew command, and open it for the first time.
Turn on the default Docker socket in Docker Desktop for Mac, so tools that look for /var/run/docker.sock can reach Docker.
On macOS, valkey-cli reports “setsockopt(TCP_NODELAY): Invalid argument” when Valkey isn’t running or is on another port. Here’s the check that shows it and the fix.
Install Valkey on your Mac with Homebrew, start it as a background service, and check that it answers with valkey-cli ping.
Install OpenTofu on your Mac with one Homebrew command, then check that the tofu command works. Real Terminal output, step by step, for complete beginners.
Run Ubuntu Server 26.04 LTS on your Mac for free with the Multipass app: install it, pick Ubuntu Server, set its size and click Launch. No Terminal needed.
brew services cleanup reported nothing cleaned while two old PostgreSQL launch agents were still loaded. Here is why Homebrew skips them, and how launchctl bootout fixes it.
sudo rm -rf /Library/PostgreSQL failed with Operation not permitted on macOS. The cause was privacy protection, not file permissions, and the fix is to give Terminal Full Disk Access for a moment.
The PostgreSQL uninstaller leaves your databases, a hidden postgres user and pgAdmin settings behind. These six short steps remove all of it from macOS.