I just got my first MacOS system with an M1 chip and I'm having trouble installing the native M1 version of MySQL using Homebrew. I have my terminal configured without Rosetta and I'm using the command "brew install MySQL" but I get this error:
ritvikbiswas@Ritviks-MacBook-Pro ~ % brew install mysql
Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!
Please create a new installation in /opt/homebrew using one of the
"Alternative Installs" from:
https://docs.brew.sh/Installation
You can migrate your previously installed formula list with:
brew bundle dump
ritvikbiswas@Ritviks-MacBook-Pro ~ %
Could anyone help me figure out why I'm getting this error? Maybe I messed up the brew installation somewhere?
You installed Homebrew into the wrong place. On x86 Mac, Homebrew uses /usr/local
. On M1 Mac, Homebrew uses /opt/homebrew
. I don't know where you copied and pasted the installation script. You obviously made a wrong installation.
Please go the official installation guide page. And