I need to install MySQL 5.6 on my Mac, running under Mojave. (Because AWS Aurora Serverless only allows MySQL 5.6)
That wouldn't be an issue if a .dmg
was available, but there are none for MacOS for this particular version, too old I guess?
See https://dev.mysql.com/downloads/mysql/5.6.html
No Mac OS in the list. I tried to play around with the URL to see if there was a non-reference dmg file, but no luck.
Which leads me to two choices:
I don't know what's the most simple/straightforward way to install it. It's only meant to be used locally.
The MySQL download for macOS Catalina is compatible with macOS Mojave. Here's how to find and download MySQL for macOS. Go to the MySQL website and select the Downloads option at the top of the screen. Scroll down to the bottom of the Downloads screens and select MySQL Community (GPL) Downloads.
MySQL 5.6 has reached its EOL in February 2021, and we recommend that you start to plan migrating to MySQL 8.0. The latest version of MySQL is supported until April 2026 and keeps your database features up to date with continuously receiving updates and fixes, especially the security patches.
The free download for the Mac is the MySQL Community Server edition. Go to the MySQL website and download the latest version of MySQL for MacOS. Select the native package DMG archive version, not the compressed TAR version.
To install:
brew install [email protected]
To have launchd start [email protected] now and restart at login:
brew services start [email protected]
Or, if you don't want/need a background service you can just run:
/usr/local/opt/[email protected]/bin/mysql.server start
I'd recommend using homebrew to be honest. I think it's brew install [email protected]
if you have homebrew installed already.
You may need to also add the install bin directory to your system path, but the command output will tell you what to do if so.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With