brew install mysql
To start mysql now and restart at login:
brew services start mysql
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/mysql/bin/mysqld_safe --datadir\=/opt/homebrew/var/mysql
mysql -u root
-- OR
mysql -D snippetbox -u web -p
-- PASSWORD: pass
curl -i "http://localhost:4000/gist/view?id=1”
Generate a TLS certificate
go run /usr/local/go/src/crypto/tls/generate_cert.go --rsa-bits=2048 --host=localhost