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