Manage MySQL, MongoDB and PostgreSQL using Homebrew Services

Homebrew is excellent for downloading and installing packages but even better for managing local databases for development. The interface is known as Homebrew Services.

If you have not installed Homebrew yet, please read this first.

Leveraging Tap

The tap command allows Homebrew to tap into another repository of formulae, helping expand your installable software options.

brew tap homebrew/services  

List available services

brew services list

This screenshot reveals that three of my brew packages mongodb, postgres, or mysql are actively running using brew services.

Stop, start or restart a service

Start, stop, or restart a database.

brew services [start, stop, restart] [name of package]


Uninstall a service

brew uninstall [name of the package]
brew cleanup --force  
brew services cleanup