![]() Run -user=root -datadir=/usr/local/var/mysql56Ĭhange the configuration to start the 5.6 version pointing to this databaseĮdit to change both /usr/local/var/mysql instances to /usr/local/var/mysql56 (I didn't put the in the folder name just in case it would cause If you want to run both in parallel on their own distinct databases, there are a few more steps to do.Ĭreate a new (separate) data directory and database for the 5.6 version My issue was that the was trying to boot the mysql 5.7 database (installed in the default /usr/local/var folder). ![]() # Check which version of mysql is currently symlinked To verify which mysql version you're on at any time. # Unlink current mysql versionĪnd to switch back to the current version. # Install older mysql versionīrew install Start agent for older version of mysql # Start agent for current version of mysql I was using homebrew version 0.9.5 when writing this gist. Please see comments below and/or gist history for additional details. docker-compose down # or ctrl-c if service is running in foregroundĭisclaimer: Your milage may vary, I've updated this gist based on comments below but haven't tested it myself since switching to Docker. Please visit for environment variables that you can optionally set (e.g. Instead consider adding a barebones docker-compose.yml for each project and run docker-compose up to start each project's mysql service. ![]() ![]() This gist was originally created for Homebrew before the rise of Docker, yet it may be best to avoid installing mysql via brew any longer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |