This issue happened due to the path is not being set up correctly after MySQL installation on mac OS. Follow these steps- Step1- Edit .zshrc file % vi ~/.zshrc Step2- Locate for "export PATH" entry and append ":/usr/local/mysql/bin" to the end of the line. If the export PATH entry doesn't exist, then add the following command export PATH=${PATH}:/usr/local/mysql/bin/ Step3- Run source ~/.zshrc Step4- Restart terminal