Syntax
VALIDATE_PASSWORD_STRENGTH(str)
Purpose
VALIDATE_PASSWORD_STRENGTH() returns an integer for a specified password string to indicate the strength of the password. The return value ranges from 0 (weakest) to 100 (strongest). You can execute the SHOW VARIABLES LIKE 'validate_password%'; statement to query the system variables involved in password strength evaluation.
Examples
obclient [test]> SELECT VALIDATE_PASSWORD_STRENGTH('ob$_@123');
+----------------------------------------------+
| VALIDATE_PASSWORD_STRENGTH('ob$_@123') |
+----------------------------------------------+
| 100 |
+----------------------------------------------+
1 row in set