Created
August 11, 2016 06:17
-
-
Save raynimmo/064d54541bc95d2893d31d27513ad052 to your computer and use it in GitHub Desktop.
killand reboot MAMP on OSX when mysql is hung
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Quit MAMP | |
// Open terminal, enter.. | |
// List all mysql processes and their status and resource usage | |
ps aux | grep mysql | |
// The lsof (list open files) command returns the user processes that are actively using a file system. | |
// It is sometimes helpful in determining why a file system remains in use and cannot be unmounted. | |
lsof -i | |
// termintate the mysqld processes | |
killall -9 mysqld | |
//restart MAMP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment