I'm trying to load a database into MySQL. I'm on a Mac, and I can see the MySQL server running in the system preferences. Also, when I issue the shell command mysql
I'm entered into the interactive mode of mysql. However, when I try to load a database from the shell:
mysql -f --user root --password mypassword < database.sql
it gives me back zsh: command not found: mysql
. Putting sudo
in front does not make a difference. How can this be?