Skip to content

Instantly share code, notes, and snippets.

@theotherzach
Created January 24, 2017 22:35
Show Gist options
  • Save theotherzach/8d3c1669214b2962f2225097d1e55a62 to your computer and use it in GitHub Desktop.
Save theotherzach/8d3c1669214b2962f2225097d1e55a62 to your computer and use it in GitHub Desktop.

Downgrading to MySQL 55

https://gist.github.com/benlinton/d24471729ed6c2ace731

Kill Existing MySQL process

  • ps aux | grep mysql Validate that your current mysql process is running.
  • mysql --version to confirm that you’re not running 5.5
  • brew services stop mysql
  • ps aux | grep mysql Validate that your current mysql process is NOT running. kill -9 some processes if need be.
  • Wait 10 seconds
  • ps aux | grep mysql Make sure that fucker isn’t running again.

brew uninstall mysql

  • Might need to unlink some stuff? I don’t know.

Install mysql 5.5

  • Open a new terminal session.
  • ps aux | grep mysql Seriously.
  • brew search mysql
  • brew install [email protected]
  • brew info [email protected]
  • start that fucker up Decide how you want to run it. I’ve decided not to let databases just run in the background on this machine so I use the manual command, but I’m in the minority.
  • ps aux | grep mysql Validate that the correct version is running.

Rebundle!

  • Open a new terminal session
  • You’ll need to force the mysql gem to reinstall based on the libs provided by 5.5. I cannot remember a reliable way to force this right now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment