sudo mysql -u root
> use mysql;
> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '***';
// *** is your password
> FLUSH PRIVILEGES;