![]() ~/Library/Application Support/appsolute/MAMP PRO/stopMysql.sh If you've changed the password for the root user (which you should), the updated password will also be reflected in the script. MAMP PRO creates a shell script in your Library folder. If you are using MAMP PRO there is an easier way to stop MySQL. ![]() ![]() Sh -c '/Applications/MAMP/Library/bin/mysqladmin -u root -proot -socket=/Applications/MAMP/tmp/mysql/mysql.sock shutdown'Īs a bonus, the indicators in the MAMP PRO.app GUI show the correct status of these apps in real time, so you can continue to rely on that. (for some reason you must hit enter again to regain your prompt) Sh -c '/Applications/MAMP/Library/bin/mysqld_safe -defaults-file=/Applications/MAMP/tmp/mysql/my.cnf -port=3306 -socket=/Applications/MAMP/tmp/mysql/mysql.sock -user=alex -pid-file=/Applications/MAMP/tmp/mysql/mysql.pid -log-error=/Applications/MAMP/logs/mysql_error_log.err -tmpdir=/Applications/MAMP/tmp/mysql/tmpdir -datadir=/Library/Application\ Support/appsolute/MAMP\ PRO/db/mysql &' Sudo /Applications/MAMP/Library/bin/httpd -f "/Library/Application Support/appsolute/MAMP PRO/conf/nf" -k restart MySQL Sudo /Applications/MAMP/Library/bin/httpd -f "/Library/Application Support/appsolute/MAMP PRO/conf/nf" -k stop Sudo /Applications/MAMP/Library/bin/httpd -f "/Library/Application Support/appsolute/MAMP PRO/conf/nf" -k start Note that I have my ports set to the application's respective defaults (Apache: 80, MySQL: 3306), and as such these commands reflect that, AND you must use sudo with Apache (which you will in MAMP as well if you're using port 80).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |