FLUSH PRIVILEGES; ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password'; EXIT; , then restart MySQL normally:
mysql -u root :
:
net stop MySQL (if you lost password, see Method B). change mysql root password windows
mysql -u root -p Enter current password. ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password'