![]() Sudo rm -rf /Applications/MAMP/db/mysql57/mysql/slave_*Īnd instead of changing permissions to o+rw just change the owner of the DB directory to your current user this matches how MAMP installs this stuff: sudo chown -R $:admin /Applications/MAMP/db/mysql57 Once that is done, get rid of MySQL database specific binaries like this for upgrade: sudo rm -rf /Applications/MAMP/db/mysql57/mysql/innodb_* Sudo rsync -arv -progress mysql-5.7.*/share/* /Applications/MAMP/Library/share/Ĭopy your existing MySQL 5.6 database directory like this just note that the mysql56 directory is temporarily needed during the upgrade but can be discarded after the rest of the MySQL 5.7 upgrade is done: sudo cp -r /Applications/MAMP/db/mysql56 /Applications/MAMP/db/mysql57 Such as instructions to set chmod -O o+rw and even a comment about creating a symbolic link to /tmp/mysql.sock why do that when MAMP out of the box should be self contained and not require such changes? So here are the instructions I have put together based on my experience getting MySQL upgraded for MAMP 4.4.1 on mac OS 10.3.4 (High Sierra).įirst, get a copy of the macOS binaries for MySQL 5.7 note that as of me posting this answer MySQL 5.7.22 is the current version so adjust this URL to whatever new version you might want to use: curl -OL ĭecompress it like this: tar xfvz mysql-5.7*Ĭopy the bin/ and share/ stuff into MAMP via Rsync like this: sudo rsync -arv -progress mysql-5.7.*/bin/* /Applications/MAMP/Library/bin/ -exclude=mysqld_multi -exclude=mysqld_safe While I have read this answers and comments here-as well as some similar linked tutorials on GitHub and such-there were a few things that confused me in some of the tutorials. Leaving answer below as a reference for anyone who needs it. ![]() UPDATE: Version 5.0 of MAMP now includes MySQL 5.7 already in the installer! Just upgrade your core MAMP setup and you are set to go with MySQL instead of having to jump through technical hoops like this.
0 Comments
Leave a Reply. |