I want to expire a user 'JohnDoe' password. I executed the alter statement below:
ALTER USER 'JohnDoe'@'mysql' PASSWORD EXPIRE;
And the error message:
ERROR 1396 (HY000): Operation ALTER USER failed for 'JohnDoe'@'mysql'
Is it a syntax error or something else? And how can I fix this? Thanks.