Top Tags

MySQL 8.0 on MacOS 26 with Brew

A guide to installing MySQL 8.0 on MacOS 26 using Homebrew.

Install mysql

bash
1brew install [email protected]
brew link [email protected] --force

Start mysql service

bash
1brew services start [email protected]

Prevent upgrade from Brew

bash

Check logs

bash
1tail -30 /opt/homebrew/var/mysql/*.err

is MySQL running?

bash
1ps aux | grep mysqld | grep -v grep

if downfraded from 9 clear mysql database folder

bash
1rm -rf /opt/homebrew/var/mysql

my.cnf path

bash
1nano /opt/homebrew/etc/my.cnf

Create user for remote access

sql
1CREATE USER 'admin'@'%' IDENTIFIED BY 'strong_password';
2GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION;
3FLUSH PRIVILEGES;

Mysql logs

bash
1ls /usr/local/var/mysql/*.err