mysql -u root -pmysql>use mysql;mysql>update mysql.user set password=password('123456') where user='root';sudo service mysql stopsudo service mysql start