tidb-server有没有用户密码出错就锁定用户的功能,或者怎么实现

6.5 以下直接修改 mysql.user 表锁账户,只能手工锁。6.5 版本可以用楼上的方法。

update mysql.user set account_locked =‘Y’ where user=‘test1’;
select user,account_locked from mysql.user;
FLUSH PRIVILEGES;

1 个赞