MacOSX homebrew mysql root password

前端 未结 21 1646
自闭症患者
自闭症患者 2020-12-04 05:43

For some reason MySQL stopped giving access for root. Uninstalled and reinstalled with Homebrew. Fresh install, fresh tables but when I enter

mysql -u root -         


        
21条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 06:11

    Just run this command (where NEWPASS is your password):

    $(brew --prefix mysql)/bin/mysqladmin -u root password NEWPASS
    

    I have had the same error and fixed it this way.

提交回复
热议问题