MacOSX homebrew mysql root password

前端 未结 21 1616
自闭症患者
自闭症患者 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条回答
  •  渐次进展
    2020-12-04 06:06

    1. go to apple icon --> system preferences
    2. open Mysql
    3. in instances you will see "initialize Database"
    4. click on that
    5. you will be asked to set password for root --> set a strong password there
    6. use that password to login in mysql from next time

    Hope this helps.

提交回复
热议问题