Answer the question
In order to leave comments, you need to log in
Why is mysql command not working in macOS terminal?
Downloaded mysql 5.7.23. Installed. Started from Settings.
In bash_profile I wrote "export PATH=$PATH:/usr/local/mysql/bin". But after that, when I type the mysql command in the terminal, I get the message "-bash: mysql: command not found"
Answer the question
In order to leave comments, you need to log in
Try to run it like this:
Use the command to make sure that the path to mysql is exactly specified in PATH.
The command to make sure that mysql is definitely there and the rights to execute it are also there. /usr/local/mysql/bin/mysql
ls -la /usr/local/mysql/bin/mysql
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question