简体   繁体   中英

zsh: command not found: mysql With MAMP

I installed MAMP server on MACOS Catalina to work with PHP but when I try to check MYSQl in terminal it gives me this error:

zsh: command not found: mysql

I tried to change the path to:

export PATH=${PATH}:/usr/local/mysql/bin/

but it still gives me error, is there anyway to work around and let me access MySQL through terminal

If you are using MAMP, you should use this bin for calling MySQL

/Applications/MAMP/Library/bin/mysql -u root

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM