Flush mysql privileges after updating the root password.