1.mysql -uroot2.use mysql3.UPDATE user SET Password=PASSWORD('123456') where USER='root';4.FLUSH PRIVILEGES;5.quit6.mysql -uroot -p7.输入123456成功