check the manual that corresponds to your MySQL server version for the right syntax to use near 'PASSWORD(“newpass”)'
The syntax you were using was close. It should be:

USE mysql;
UPDATE user SET Password=PASSWORD('NEW-ROOT-PASSWORD') WHERE USER='root';


However you don't need to directly edit the mysql tables, rather use the dedicated commands:

SET PASSWORD FOR 'root'@'localhost' = 'NEW-ROOT-PASSWORD';


Note that the manual says that the syntax below is 'preferred' without hinting why you might choose one over the other:

ALTER USER 'root'@'localhost' IDENTIFIED BY 'NEW-ROOT-PASSWORD';