mysql> use mysql; mysql> update user set password=password('123456') where user='root' and host='localhost'; mysql> flush privileges;
CTRL+C 退出重新进入即可!