忘记密码:https://www.cnblogs.com/ryanzheng/p/9348723.htmlmy.cnf的[mysqld]下加:skip-grant-tables重启 mysql -urootupdate user set authentication_string = NULL where user = 'root';退出,删除skip-grant-tables,重启ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_nativ