mysql重置密码为啥会这么显示,怎么修改啊

问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果

mysql> set password=password('root');
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'password('root')
set password=password('root')' at line 1

应该是重设密码的语句有问题,可以看下安装的mysql版本,根据版本,查找更改密码的语句