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;
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;