你的命令不对啊,首先要登录到mysql:mysql -uroot -p 密码 use mysql; update user set password=passworD("test") where user='root'; flush privaliges; exit;
你命令行前面多了个#