Mysql-强制改密

Java66

MySQL V8.0.22

[mysqld]

# 跳过登录验证
skip-grant-tables

```sql
use mysql;

update user set authentication_string = '' where User = 'root' and Host = 'localhost';

flush privileges;

-- 取消跳过登录验证,再进MySQL正常改密

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';

输入验证码查看隐藏内容

扫描二维码关注本站微信公众号 Johngo学长
或者在微信里搜索 Johngo学长
回复 svip 获取验证码
wechat Johngo学长