![]() ![]() ![]() If you're not running MAC OS 10.12 or want a different version of MySQL (the above script installs v5.7.20) there are a few other flavours of this script here that claim to work for other OS and MySQL versions. cd ~/Desktop and then run bash mamp-migrate.sh To run this script just open up the Terminal application, cd to your Desktop, e.g. Applications/MAMP/Library/bin/mysql_upgrade -u root -p Sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock Sudo chmod -R o+rw "/Library/Application Support/appsolute/MAMP PRO/db/mysql/"Įcho "making symlink, enter sudo password" Sudo chmod -R o+rw /Applications/MAMP/tmp/mysql/ Sudo chmod -R o+rw /Applications/MAMP/db/mysql/ Sudo rsync -arv -progress mysql-5.7.*/share/* /Applications/MAMP/Library/share/ Sudo rsync -arv -progress mysql-5.7.*/bin/* /Applications/MAMP/Library/bin/ -exclude=mysqld_multi -exclude=mysqld_safe Sudo rsync -arv -progress /Applications/MAMP ~/Desktop/MAMP-Backup I just saved in a file named 'mamp-migrate.sh' to my Desktop. ![]() Here's the bash script I used to do all the above in one fell swoop. Download and Install MySQL 5.7.*įirstly we're going to need to get a version of MYSQL 5.7 that's compatible with our Operating System, backup our existing MAMP setup (you know, just in case) and migrate MAMP to use it. Lets' update the version of MySQL MAMP uses out of the box and be done with it.įirstly here was my setup: OS. MAMP do document a method to setup a separate instance of MySQL 5.7 that runs in parallel to their packaged 5.6 version, but you have to manage multiple ports and the databases get stored in separate places etc etc. I wanted to live life on the edge and use the latest and greatest so here are my steps navigating some of the 'gotchas' and using some wizardry to get it playing nicely.ĭISCLAIMER. Why they don't with 5.7 is beyond me (it was first released in 2013!) but that's by the by. Out of the box MAMP PRO v4.4 comes with a flavour of MySQL 5.6 (at the time of writing it's 5.6.38 specifically). ![]()
0 Comments
Leave a Reply. |