Issue
mysql -uroot
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Solution
Need to make link
sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
Problem
mysql.server start
./opt/homebrew/Cellar/mysql/8.0.32/bin/mysqld_safe: line 144: /opt/homebrew/var/mysql/M1-MacBook-Pro.local.err: Permission denied
Solution
sudo chmod -R 777 /opt/homebrew/var/mysql/M1-MacBook-Pro.local.err
Problem
Reinstall mysql
Solution
- First, make sure you have homebrew installed
- Run
brew doctorand address anything homebrew wants you to fix - Run
brew install mysql - Run
brew services restart mysql - Run
mysql.server start - Run
mysql_secure_installation
--
Download mysql
https://dev.mysql.com/downloads/file/?id=518602
Use installer