I try to alter mysql root password on ubuntu 16 under Digital Ocean. I suppose command format is :
ALTER USER \'root\'@\'localhost\' IDENTIFIED BY \'New password\';