출처 : https://may0301.tistory.com/2

cd /

cd Applications

mampstack-7.1.28-0 디렉토리에 설치된 것을 확인할 수 있다.


export PATH=$PATH:/Applications/mampstack-7.1.28-0/mysql/bin


-

root 비밀번호 변경

/Applications/MAMP/Library/bin/mysqladmin -u root -p password newpassword

mysqladmin -u root -p password 


/Applications/mampstack-7.1.28-0/mysql/bin/mysqladmin -u root -p password 


mysqladmin.bin: connect to server at 'localhost' failed

error: 'Access denied for user 'root'@'localhost' (using password: YES)'