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 mysql@5.7.rb no longer works, and brew edit mysql@5.7 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: