To resolve the problem, run the following command:

Change to mysql installation directory: C:\Program Files\ mysql \ mysql Server 8.0bin

Log in and run the following command

use mysql;

alter user ‘root’@’localhost’ identified with mysql_native_password by ‘********’;

flush privileges;