[scode type="green"]操作步骤[/scode] - 首先连入ssh,执行 `mysqld --skip-grant-tables` - 新建ssh窗口,执行mysql,就可以免密连入mysql了 - 执行sql 1. `use user;` 2. `update user set authentication_string=password('新密码') where user='root' and Host='localhost';` - 完成 操作步骤 首先连入ssh,执行 mysqld --skip-grant-tables新建ssh窗口,执行mysql,就可以免密连入mysql了执行sqluse user;update user set authentication_string=password('新密码') where user='root' and Host='localhost';完成 Last modification:August 26, 2020 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 如果觉得我的文章对你有用,请随意赞赏