I installed MySQL 8.0 using brew install mysql.
When I run mysql -V I get 8.0.32.
When I login to the CLI by doing mysql -u root instead I see Server version: 5.7.40 Homebrew.
If I connect with an SQL client and run SHOW VARIABLES WHERE Variable_name = 'basedir'; then I get /usr/local/Cellar/mysql@5.7/5.7.40/.
The dir /usr/local/Cellar/mysql@5.7 does not exist on my computer. Only the dir /usr/local/Cellar/mysql/8.0.32.
If I explicitly do /usr/local/Cellar/mysql/8.0.32/bin/mysql -u root then I still get Server version: 5.7.40 Homebrew.
When I run queries with syntax supported by 8.0, they don't work, implying that even tho Homebrew says it install 8.0, it actually installed 5.7.
I tried reinstalling mysql, but same issue.
What is going on here?
