Reset MySQL root password using ALTER USER statement after install on Mac

后端 未结 19 2257
慢半拍i
慢半拍i 2020-11-29 14:21

I\'m new to the whole Mac experience. I recently installed MySQL and it seems I have to reset the password after install. It won\'t let me do anything else.

Now I al

19条回答
  •  半阙折子戏
    2020-11-29 15:13

    I also got the same problem in mac OS X 10.10.4(Yosemite).SET PASSWORD work for me.Alter password for mysql- mysql> SET PASSWORD = PASSWORD('your_password'); Query OK, 0 rows affected, 1 warning (0.01 sec)

    set your Mysql environment path variable in .bash_profile and add the below line
    export PATH=$PATH:/usr/local/mysql/bin, after that, run the following command :source .bash_profile

提交回复
热议问题