使用原来mysql命令报错
set password for root@localhost = password(‘123’);会报格式错误。
新版本mysql重置密码需改为:
alter user ‘root’@‘localhost’ identified by ‘123’;
08-29
2255
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-13
使用原来mysql命令报错
set password for root@localhost = password(‘123’);会报格式错误。
新版本mysql重置密码需改为:
alter user ‘root’@‘localhost’ identified by ‘123’;