A
A
Alexey2018-08-28 17:26:59
MySQL
Alexey, 2018-08-28 17:26:59

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

1 answer(s)
I
ISE73, 2018-09-03
@ISE73

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 question

Ask a Question

731 491 924 answers to any question