![]() ![]() Sudo /Applications/MAMP/Library/bin/mysql_config_editor -verbose set -socket=/Applications/MAMP/tmp/mysql/mysql.sock Sed -i.bak 's/mysql56/mysql57/g' /Applications/MAMP/Library/bin/mysqld_safe Sudo chmod -R 0777 /Applications/MAMP/db/mysql57/ 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 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. You must edit this template (menu File > Open Template > MySQL (my.cnf) > 5.7.30) to modify the MySQL configuration. So if you follow these instructions with MAMP PRO you will probably break your MAMP. Please note: Editing this file does NOT work as it will be overwritten every time MySQL is restarted by MAMP PRO with a my.cnf file that is created from the MySQL template. 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 The MAMP Pro file resides in /Library/Application Support/appsolute/ MAMP PRO/conf/ and doesnt have a PHP installation (which. */share/ * /Applications/MAMP/Library/share/ Once you have successfully installed MAMP PRO you can run both. */bin/ * /Applications/MAMP/Library/bin/ -exclude=mysqld_multi -exclude=mysqld_safe Start your MySQL 5.7 server in System Preferences. It allows you to modify data and perform administrative tasks such as creating new databases.Įrrors that occur during startup or execution of the MySQL server are stored in this log file.Tar xfvz mysql-5.7.18-macos10.12-x86_64.tar.gz
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |