config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/auth_sec/t/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/auth_sec/t/early_plugin_load.test

--source include/not_embedded.inc
--source include/have_validate_password_plugin.inc

call mtr.add_suppression("Dictionary file not specified");

--echo # Setup : Restart server with --early_plugin_load option


--exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
-- send_shutdown
-- source include/wait_until_disconnected.inc
--exec echo "restart:--early-plugin-load="validate_password=$VALIDATE_PASSWORD" --validate_password_length=10" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
--enable_reconnect
--source include/wait_until_connected_again.inc
--disable_reconnect


--echo # 1. Check that VALIDATE_PASSWORD plugin is installed properly

SELECT PLUGIN_NAME, PLUGIN_STATUS, LOAD_OPTION FROM INFORMATION_SCHEMA.PLUGINS
WHERE PLUGIN_NAME LIKE 'VALIDATE_PASSWORD';

#should be 10
SHOW VARIABLES LIKE 'validate_password_length';

--echo # 2. Use VALIDATE_PASSWORD plugin
--error ER_NOT_VALID_PASSWORD
CREATE USER foo@localhost IDENTIFIED BY 'abcd';

CREATE USER foo@localhost IDENTIFIED BY 'C0mPl3%P@sSw0rD';

DROP USER foo@localhost;

--echo # 3. Try uninstalling VALIDATE_PASSWORD plugin
UNINSTALL PLUGIN VALIDATE_PASSWORD;

--disable_warnings
--source include/force_restart.inc
--enable_warnings

Man Man