Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save prabowomurti/38d4a041d06ece5d473a1b77b63db275 to your computer and use it in GitHub Desktop.
Save prabowomurti/38d4a041d06ece5d473a1b77b63db275 to your computer and use it in GitHub Desktop.
Can not start MySQL 9.0.x on Brew update
~ mysql -uroot 
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

~ brew services start mysql 
Bootstrap failed: 5: Input/output error
Try re-running the command as root for richer errors.
Error: Failure while executing; `/bin/launchctl bootstrap gui/502 /Users/prab/Library/LaunchAgents/homebrew.mxcl.mysql.plist` exited with 5.

Need to install the 8.4 and rerun the service.

brew install [email protected]
brew services start [email protected]

Select mysql version

brew unlink mysql
brew link [email protected]
$ mysql --version 
mysql  Ver 8.4.2 for macos13.6 on arm64 (Homebrew)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment