mamp mysql localhost code example Example: mamp connect to mysql /Applications/MAMP/Library/bin/mysql -u root -proot