Can't reset root password with --skip-grant-tables on ubuntu 16

后端 未结 4 1737
臣服心动
臣服心动 2020-12-12 12:42

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

  • Ubunt
4条回答
  •  自闭症患者
    2020-12-12 13:19

    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 = '';
    

提交回复
热议问题