You have an extra character before mysql
that looks like a space, but is not a space. You have to fix that before running the command. This problem occurs when you press the space bar while you are holding the Option key.
$ # Option + Space
$ unzip -p dump.sql.zip | mysql
zsh: command not found: mysql
$ # Regular Space
$ unzip -p dump.sql.zip | mysql
...
expected output
...
Another example:
$ # Option + Space
$ echo "hi" | less
-bash: less: command not found
$ # Regular Space
$ echo "hi" | less
hi
(END)
Another option is to eliminate the space after the pipe entirely:
$ echo "hi" |less
hi
(END)
Option+Space = \xc2\xa0 (UTF-8)
Space = Regular Space
mysql
takes several arguments like user, password (where applicable), database, etc. You seem to be missing a number of those.mysql
arguments, as whenmysql
is recognized, it will report another error.found:
andmysql
in the error message you still had shift/opt/whatever pressed from typing the pipe character when you pressed space.