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

后端 未结 4 1742
臣服心动
臣服心动 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:28

    I tried many ways including @pedronalbert 's but still not working.

    The way I solved it is adding "skip-grant-tables" in /etc/my.cnf then start mysql service and connecting mysql with "mysql -u root" as https://www.codero.com/knowledge-base/content/33/296/en/how-to-reset-your-root-mysql-password.html

    It works in my VM CentOS 7.

提交回复
热议问题