mysql重置 root 用户密码。_update user set password=password("123456") where -CSDN博客

网站介绍:文章浏览阅读549次。Linux下默认安装了mysql,默认root用户密码为空。于是设置了root用户的密码,使用了错误的命令如下:mysql> update user set password=123456 where user="root";(正确为mysql> update user set password=‘123456’ where user=‘root’; //注意单引号..._update user set password=password("123456") where user='root';