Install Mysql On Mac Catalina

Install MySQL on macOS Catalina. Download and install the latest MySQL generally available release DMG for macOS. MySQL 8 is the latest version. But older versions are available if you need to support older applications. When the install completes it will provide you with a temporary password. Copy this password before closing the installer. Install MySQL with Download do MySQL community server. For mac OS Catalina: /usr/local/mysql/bin/mysql -uroot -p This will prompt you to enter password of mysql.

mysql2-catalina.md

commented Oct 1, 2020

If you want to bundle mysql2 you need to set these flags via bundle config:
bundle config build.mysql2 --with-opt-dir=$(brew --prefix openssl)

On my Mac OS Catalina (with MySQL 8) setting --with-cppflags generated this error:

Credit to this comment.

commented Dec 31, 2020

Did you ever find a workaround for this? I've been doing any and everything to get the mysql2 gem installed in a rails project with no luck. I'm at Catalina 10.15.7

Install Mysql On Mac Catalina

commented Jun 11, 2021

Install Mysql On Mac Catalina

I also had this problem in an old project. (already had installed openssl and mysql@5.7)
upgrading bundler from 1.17.3 to 2.2.9 worked for me.

Install Apache Mysql Php On Macos Catalina

commented Aug 1, 2021

I've tried your different git for Mojave and worked for me:
gem install mysql2 -v '0.5.2' -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include

Install Mysql On Mac Catalina Download

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