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.

brew-services-list

Stop, start or restart a service

Start, stop, or restart a database.

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

services-start-stop


Uninstall a service

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