USE mysql; UPDATE mysql.user SET PASSWORD=PASSWORD('newpassword') WHERE USER='root'; FLUSH PRIVILEGES;