After successful installation, there is such a line in the .err file in the data directory:
A temporary password is generated for root@localhost:xxxxxx
'' Xxxxxx '' is the initial password later.
Run as administrator cmd in the bin directory
Has entered net start mysql
mysql -u root -p
alter user user() identified by "新密码";
In the new password, where you can enter your password. Then you can modify successfully.