Edite o arquivo my.cnf conforme abaixo:
[mysqld]
skip-grant-tables=on
Reinicie o mysql-server
Acesse o mysql sem senha execute o comando abaixo:
update user set plugin="mysql_native_password" where User="root";
FLUSH PRIVILEGES;
ALTER USER "root"@"localhost" IDENTIFIED BY 'root';
FLUSH PRIVILEGES;
Reverta a alteração excluindo o “skip-grant-tables=on”
[mysqld]
skip-grant-tables=on
Reinicie o mysql-server