Homebrew
1 min read
MySQL should run in non-root user in brew services
sudo rm -f /tmp/mysql.sock /tmp/mysqlx.sock
# location will be different if yours are intel chip
sudo rm -f /Library/LaunchDaemons/homebrew.mxcl.mysql.plist
# optional
sudo chown -R "baba:admin" /opt/homebrew/bin/mysqld
sudo chown -R "baba:admin" /opt/homebrew/bin/mysql
Remove user=root
in /opt/homebrew/etc/my.cnf