![]() If it helps I used the following: #!/bin/sh It's running for me, though the update script is throwing a ton of errors, that's a problem to fix for later. Now you can use the Starting MySQL command. Sudo rm -fr /Applications/MAMP/db/mysql57/mysql/slave_* Sudo rm -fr /Applications/MAMP/db/mysql57/mysql/innodb_* Sudo cp -r /Library/Application\ Support/appsolute/MAMP\ PRO/db/mysql56 /Applications/MAMP/db/mysql57 To fix this problem use the following commands: MySQL will fail to launch because the data folder is empty. So if you follow these instructions with MAMP PRO you will probably break your MAMP. So the "Building Mysql 5.7 Folder" section will not be operating on the right folders.įurthermore the /Applications/MAMP/Library/bin/mysqld_safe file in MAMP will reference DATADIR=/Applications/MAMP/db/mysql57, which means MAMP PRO on next launch will look for the databases in the old MAMP location. MAMP and MAMP PRO share almost all their paths, but MAMP PRO recently moved the data directory from /Applications/MAMP/db/ to /Library/Application\ Support/appsolute/MAMP\ PRO/db/. There is a problem with this script and MAMP PRO. Sudo /Applications/MAMP/Library/bin/mysql_upgrade -user=root -password=root -port=3306 -socket=/Applications/MAMP/tmp/mysql/mysql.sock -force Sudo /Applications/MAMP/Library/bin/mysqld_safe -port=3306 -socket=/Applications/MAMP/tmp/mysql/mysql.sock -pid-file=/Applications/MAMP/tmp/mysql/mysql.pid -log-error=/Applications/MAMP/logs/mysql_error_log ![]() Sudo chmod -R o+rw /Applications/MAMP/tmp/mysql/ ![]() Sed -i.bak 's/mysql56/mysql57/g ' /Applications/MAMP/Library/bin/mysqld_safe Sudo chmod -R o+rw /Applications/MAMP/db/mysql57/ Sudo rm -fr /Applications/MAMP/db/mysql57/mysql/slave_ * Sudo rm -fr /Applications/MAMP/db/mysql57/mysql/innodb_ * Sudo cp -r /Applications/MAMP/db/mysql56 /Applications/MAMP/db/mysql57 */share/ * /Applications/MAMP/Library/share/ */bin/ * /Applications/MAMP/Library/bin/ -exclude=mysqld_multi -exclude=mysqld_safe
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |