在mysql中使用语句
update user set password=password(“xxxxx”) where user=“root”;
时报错
解决方法:
因为在mysql5.7之后没有password语段,所以改为
update user set authentication_string=password(“xxxxx”) where user=“root”;
即可解决
在mysql中使用语句
update user set password=password(“xxxxx”) where user=“root”;
时报错
解决方法:
因为在mysql5.7之后没有password语段,所以改为
update user set authentication_string=password(“xxxxx”) where user=“root”;
即可解决