mysql root password forgot windows code example Example: how to change mysql root password in windows 10 ALTER USER 'root'@'localhost' IDENTIFIED BY 'NewPassword';