How to fix missing OpenSSL library for MySQL after brew upgrade?

Viewed 1248

I upgraded MySQL (and a slew of other packages) using the ever-so dangerous brew update && brew upgrade

After the upgrade, I started getting a database connection error in the browser and then realized the OpenSSL library is now missing

My initial thought was to force uninstall OpenSSL and re-install the version MySQL is looking for, but there's quite a few packages depending on the current version.

Error

chris$ mysql -v
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/bin/mysql
  Reason: image not found

OpenSSL

enter image description here

Attempt to brew uninstall openssl (with intention of re-reinstalling 1.0)

enter image description here

1 Answers

Try to switch back:

brew switch openssl 1.0.2t

Helped for me.

Related