A temporary password is generated for root@localhost: lK7/BoWOS
alter user 'root'@'localhost' identified by 'Huawei1234!@#$';
set global validate_password.policy=0;
set global validate_password.length=1;
alter user 'root'@'localhost' identified by '123456';
update user set host='%' where user = 'root';
alter user 'root'@'%' identified with mysql_native_password by '123456';
flush privileges;