Skip to content

Instantly share code, notes, and snippets.

@vt-rli
Created September 18, 2025 15:07
Show Gist options
  • Select an option

  • Save vt-rli/f2cf369f759f6e58d0809a5f927863bf to your computer and use it in GitHub Desktop.

Select an option

Save vt-rli/f2cf369f759f6e58d0809a5f927863bf to your computer and use it in GitHub Desktop.
Install MySQL 5.7 on macOS 26(Tahoe) using Homebrew

It is now September 18, 2025, three days after the release of macOS 26 (Tahoe). Due to a few legacy projects, I still need to use MySQL 5.7 in 2025.

Homebrew has long since dropped support for MySQL 5.7. The old method of installing via brew tap homebrew/core --force and then modifying [email protected] no longer works, and brew edit [email protected] is also broken.

Thanks to ferrucc-io's reply, I refined and tested the steps myself and got MySQL 5.7.44 up and running on macOS 26.

For anyone who runs into the same issue, I’m documenting here:

brew tap homebrew/core --force
curl -fL "https://raw.githubusercontent.com/Homebrew/homebrew-core/6c907880b95a3702348c1fcce1c661fcc03336e5/Formula/m/mysql%405.7.rb"  -o "/opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/m/[email protected]"
sed -i '' '/disable! date: "2024-08-01", because: :unsupported/d' /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/m/[email protected]
curl -fL "https://raw.githubusercontent.com/Homebrew/homebrew-core/6c907880b95a3702348c1fcce1c661fcc03336e5/Formula/o/openssl%401.1.rb"   -o "/opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/o/[email protected]"
sed -i '' '/disable! date: "2024-10-24", because: :unsupported/d' /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/o/[email protected]

brew tap-new local/old-openssl
cp /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/o/[email protected] \
   $(brew --repository local/old-openssl)/Formula/[email protected]
brew install local/old-openssl/[email protected]

brew tap-new local/old-mysql
cp /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/m/[email protected] \
   $(brew --repository local/old-mysql)/Formula/[email protected]
brew install local/old-mysql/[email protected]

echo 'export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
brew services start local/old-mysql/[email protected]

mysql_secure_installation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment