Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install MySQL 5.6 on OSX Mojave?

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

enter image description here

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:

  • Install it from source (is it possible? how?)
  • Install it in a Docker container

I don't know what's the most simple/straightforward way to install it. It's only meant to be used locally.

like image 978
Vadorequest Avatar asked Feb 28 '19 22:02

Vadorequest


People also ask

How do I download MySQL for Mac Mojave?

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.

Is MySQL 5.6 deprecated?

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.

Which version of MySQL should I download for Mac?

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.


2 Answers

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
like image 81
Carlos Henrique Moreira Dos S. Avatar answered Oct 10 '22 06:10

Carlos Henrique Moreira Dos S.


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.

like image 24
scrowler Avatar answered Oct 10 '22 06:10

scrowler