I am new to mac and was following a video and typed export PATH="$HOME/opt/git/bin:$PATH" I believe this messed up my path and I am not able to install MySQL now. When I tried to install homebrew I get -bash: brew: command not found. I tried restarting the terminal and I am still getting this error.
closed as not a real question by bmike♦ May 7 at 16:13
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
Restarting the terminal should have solved the problem since you didn't append what you have typed to a bash start-up file.
Also, even if what you have typed was directed to a bash start-up file it wouldn't affect where bash would find
Your problem lays in something else you've done that has changed the settings for your path in a bash start-up file or have deleted/altered the location of the executable.
Why aren't you able to install MySQL? What errors do you get? What form of package are you installing? Is it from the MySQL official site?
Recommended installation of
Unless you installed brew into
Did you instead install it at
brew is only for macs. oh!. i see you are using a mac. ok thn, open your terminal window. oh, its open. ok, then. i can help you no more. keep up the good work.