MySQL root password change

前端 未结 22 2822
被撕碎了的回忆
被撕碎了的回忆 2020-11-29 18:30

I have been trying to reset my MySQL root password. I have run the mysqld_safe --skip-grant-tables, updated the root password, and checked the user table to make sure it is

22条回答
  •  时光取名叫无心
    2020-11-29 18:44

    For the current latest mysql version (8.0.16), none of these answers worked for me.

    After looking at several different answers and combining them together, this is what I ended up using that worked:

    update user set authentication_string='test' where user='root';
    

    Hope this helps.

提交回复
热议问题