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

后端 未结 19 2256
慢半拍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:12

    This worked for me:

    ALTER USER USER() IDENTIFIED BY 'auth_string';

    I found it here: http://dev.mysql.com/doc/refman/5.7/en/alter-user.html#alter-user-current

提交回复
热议问题