Description\n-----------\n\nThe plugin is used to prevent a user from reusing a password, which can be a requirement in some security policies. The password_reuse_check_interval system variable determines the retention period, in days, for a password. By default, this is zero, meaning unlimited retention. Old passwords are stored in the mysql.password_reuse_check_history table.\n\nNote that passwords can be directly set as a hash, bypassing the password validation, if the strict_password_validation variable is OFF (it is ON by default).\n\nInstalling the Plugin\n\nAlthough the plugin's shared library is distributed with MariaDB by default, the plugin is not actually installed by MariaDB by default.\n\nYou can install the plugin dynamically, without restarting the server, by executing INSTALL SONAME or INSTALL PLUGIN:\n\n``sql\nINSTALL SONAME 'password_reuse_check';\n`\n\nThe second method can be used to tell the server to load the plugin when it starts up. The plugin can be installed this way by providing the --plugin-load or the --plugin-load-add options. This can be specified as a command-line argument to mysqld or it can be specified in a relevant server option group in an option file:\n\n`ini\n[mariadb]\n...\nplugin_load_add = password_reuse_check\n`\n\nUninstalling the Plugin\n\nYou can uninstall the plugin dynamically by executing UNINSTALL SONAME or UNINSTALL PLUGIN:\n\n`sql\nUNINSTALL SONAME 'password_reuse_check';\n``\n\nIf you installed the plugin by providing the --plugin-load or the --plugin-load-add options in a relevant server option group in an option file, then those options should be removed to prevent the plugin from being loaded the next time the server is restarted.\n\nExamples\n--------\n\nINSTALL SONAME 'password_reuse_check';\n\nGRANT SELECT ON . TO user1@localhost identified by 'pwd1';\nQuery OK, 0 rows affected (0.038 sec)\n\nGRANT SELECT ON . TO user1@localhost identified by 'pwd1';\nERROR 1819 (HY000): Your password does not satisfy the current policy requirements\n\nGRANT SELECT ON . TO user1@localhost identified by 'pwd2';\nQuery OK, 0 rows affected (0.003 sec)\n\nGRANT SELECT ON . TO user1@localhost identified by 'pwd1';\nERROR 1819 (HY000): Your password does not satisfy the current policy requirements\n\nURL: https://mariadb.com/docs/server/reference/plugins/password-validation-plugins/password-reuse-check-plugin