通过登录mysql系统,# mysql -uroot -pEnter password: 【输入原来的密码】mysql>use mysql;mysql> update user set password=passworD("test") where user='root';mysql> flush privileges;mysql> exit;