Reputation: 11
Using the free version on MAMP. Please no answers about the Pro.
It used to work a month ago. Now it doesn't work anymore, and now everytime I run mysql -u root
, Terminal throws ERROR zsh: command not found: myql
.
My paths are set correctly
/Applications/MAMP/Library/bin/mysql
/Applications/MAMP/Library/bin/
However, when I view this in Finder Applications Directory, I don't see the "/mysql" part inside /Applications/MAMP/Library/bin/ as you can see in the photo.Screenshot of directory where MAMP is located in Finder. Why is the /mysql part not in my directory of /Applications/MAMP/Library/bin/...
What else could be causing this problem? I have uninstalled MAMP and reinstalled it twice from the official mamp website. Why do I still get permission denied or command not found?
MAMP 7.0, MacOS 13.6.9
sudo: mysql: command not found
or zsh: command not found: mysql
Upvotes: -3
Views: 254
Reputation: 9
Quick update if anyone facing the same problem in 2025 with MAMP7.
I had the same issue, now the MySQL folder is located at: /Applications/MAMP/Library/bin/mysql80/bin
If you use other MySQL version then I guess just change .../mysql80/...
to your version.
Upvotes: -1
Reputation: 11
After spending 48 hours on this, searching the internet trying every single fix...
I thought back when the problem started happening, and realized it was since the update to MAMP 7.0.
SOLVED: Reverted back to MAMP 6.9 and it mysql -u root
works again perfectly! The missing item in my directory is back again so that the path actually works. See updated Directory screenshot
Upvotes: -1