简体   繁体   English

zsh:找不到命令:mysql 带 MAMP

[英]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:我在 MACOS Catalina 上安装了 MAMP 服务器以使用 PHP 但是当我尝试在终端中检查 MYSQl 时,它给了我这个错误:

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但它仍然给我错误,是否有解决方法让我通过终端访问 MySQL

If you are using MAMP, you should use this bin for calling MySQL如果你使用 MAMP,你应该使用这个 bin 来调用 MySQL

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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