CLI

# Enter shell
mysql -u <user-name> -p
(Enter password)

# Change root password
ALTER USER 'root'@'localhost' IDENTIFIED BY '<new-password>';