MySQL Forums
Forum List  »  Security

Re: Check password expiration
Posted by: Peter Brawley
Date: October 12, 2018 10:13AM

select 
  user, 
  password_last_changed, 
  if( password_lifetime is null or @@default_password_lifetime=0, 'Never', 
      date_add( password_last_changed, interval password_lifetime day ) 
    ) as password_expires
from mysql.user;

Options: ReplyQuote


Subject
Views
Written By
Posted
687
October 12, 2018 02:17AM
Re: Check password expiration
423
October 12, 2018 10:13AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.