I am trying to reset the root password following MysqlPasswordReset but when I try to start the server with --skip-grant-tables the server doesn\'t start
pedronalbert's answer above worked for me but the last step is now deprecated and throws the following warning:
Warning | 1287 | 'SET PASSWORD FOR = PASSWORD('')' is deprecated and will be removed in a future release. Please use SET PASSWORD FOR = '' instead
Use this command instead:
SET PASSWORD FOR root = '';