Skip to content

Instantly share code, notes, and snippets.

@luma-founder
luma-founder / multiple_mysql_versions_for_development.md
Last active September 21, 2026 08:54
Multiple MySQL Versions with Homebrew

Multiple MySQL Versions for Development

Options included below:

  • Using Docker docker-compose
  • Using Homebrew brew

Using Docker (recommended)

This gist was originally created for Homebrew before the rise of Docker, yet it may be best to avoid installing mysql via brew any longer. Instead consider adding a barebones docker-compose.yml for each project and run docker-compose up to start each project's mysql service.

#!/bin/sh
### BEGIN INIT INFO
# Provides: lcd
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Update LCD display
# Description: Update LCD display on the front of the machine.