Search code examples
mysqldockerhomebrewhomebrew-cask

How to install MySQL 5.7 on MacOS in 2025


I had an installation of MySQL 5.7 via Homebrew and I had it pinned to 5.7. But it looks like Homebrew dropped support for that version. When I did a standard brew upgrade, it ignored my pin and proceeded to upgrade me to the latest mysql. So I uninstalled it and tried to get MySQL 5.7 back.

But brew no longer supports it. Docker also seems to no longer support it.

Is there any way in 2025 to get MySQL 5.7 installed on my Mac?

If not, is there any way to salvage my databases? The data directory is still on my Mac.


Solution

  • A later version of Mysql should be able to read the old database just fine. So backup the database(Just in case) and then install mysql version 8.0 if that is available. That should work: See https://dev.mysql.com/blog-archive/upgrading-to-mysql-8-0-here-is-what-you-need-to-know/