| 1 |
--disable_ps_protocol |
| 2 |
|
| 3 |
--echo # Setup : Restart server with --early_plugin_load option |
| 4 |
|
| 5 |
|
| 6 |
--exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect |
| 7 |
-- send_shutdown |
| 8 |
-- source include/wait_until_disconnected.inc |
| 9 |
--exec echo "restart:--early-plugin-load="keyring_file=$KEYRING_PLUGIN" --loose-keyring_file_data=$MYSQL_TMP_DIR/mysecret_keyring " > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect |
| 10 |
--enable_reconnect |
| 11 |
--source include/wait_until_connected_again.inc |
| 12 |
--disable_reconnect |
| 13 |
|
| 14 |
|
| 15 |
--echo # 1. Check that KEYRING_FILE plugin is installed properly |
| 16 |
|
| 17 |
SELECT PLUGIN_NAME, PLUGIN_STATUS, LOAD_OPTION FROM INFORMATION_SCHEMA.PLUGINS |
| 18 |
WHERE PLUGIN_NAME LIKE 'keyring_file'; |
| 19 |
|
| 20 |
#should be 1 |
| 21 |
SHOW VARIABLES LIKE 'keyring_file'; |
| 22 |
|
| 23 |
--echo # 3. Try uninstalling keyring_file plugin |
| 24 |
UNINSTALL PLUGIN keyring_file; |
| 25 |
|
| 26 |
--disable_warnings |
| 27 |
--source include/force_restart.inc |
| 28 |
--enable_warnings |