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