mysql -u rootmysql
mysql> use mysql;sql
mysql> UPDATE user SET Password = PASSWORD('newpass') WHERE user = 'root';word
mysql> FLUSH PRIVILEGES;new