Reputation: 1
CREATE USER test IDENTIFIED BY 'password';
mysql -u test -h 192.168.156.33 -p
ALTER USER 'test'@'%' PASSWORD EXPIRE;
and use FLUSH PRIVILEGES;
Notice that user test still log in on client machineSHOW DATABASES, USE, SELECT,...
without show warning to change password\r
or (exit
and log in back), and try to use command, it show warning to change password like normalWhat I want is: How to stop user from use commands when set password to expire and show warning to them to change password without reconnect to server?
Upvotes: 0
Views: 46