当前位置:Gxlcms > 数据库问题 > 忘记MYSQL密码

忘记MYSQL密码

时间:2021-07-01 10:21:17 帮助过:4人阅读

一、mysql 5.7( mysql-community-server) 忘记密码

  1. <code>service mysqld stop
  2. mysqld_safe --skip-grant-tables &
  3. mysql -u root
  4. use mysql;
  5. update user set authentication_string=password(‘1111‘) where user=‘root‘;
  6. flush privileges;
  7. quit
  8. service mysqld restart</code>

忘记MYSQL密码

标签:grant   忘记   mys   cat   comm   The   ant   server   root   

人气教程排行