【TiDB Usage Environment】Production Environment
【TiDB Version】5.2.1
【Reproduction Path】What operations were performed when the issue occurred
【Encountered Issue: Issue Phenomenon and Impact】
Due to security audit requirements, we need to support login failure handling. Does TiDB have this feature implemented?
For versions below 6.5, you can only manually lock accounts by directly modifying the mysql.user table. In version 6.5, you can use the method mentioned above.
update mysql.user set account_locked ='Y' where user='test1';
select user, account_locked from mysql.user;
FLUSH PRIVILEGES;
The password management feature is only supported starting from version 6.5. Versions below 6.5 cannot automatically restrict login based on consecutive incorrect password attempts. If you need this feature, you will have to upgrade.