MySQL root password change

前端 未结 22 2860
被撕碎了的回忆
被撕碎了的回忆 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:47

    Found it! I forgot to hash the password when I changed it. I used this query to solve my problem:

    update user set password=PASSWORD('NEW PASSWORD') where user='root';

    I forgot the PASSWORD('NEW PASSWORD') and just put in the new password in plain text

提交回复
热议问题