45 lines
2.0 KiB
Plaintext
45 lines
2.0 KiB
Plaintext
--source include/no_valgrind_without_big.inc
|
|
|
|
--echo #-----------------------------------------------------------------------
|
|
--echo # Setup
|
|
let server_log= $MYSQLTEST_VARDIR/log/sfpw.err;
|
|
let SEARCH_FILE= $server_log;
|
|
let PLUGIN_DIR= $MYSQLTEST_VARDIR/tmp;
|
|
let common_restart_args= --log-error=$server_log;
|
|
--echo #-----------------------------------------------------------------------
|
|
|
|
--let $restart_parameters=restart:$common_restart_args
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
|
--source include/restart_mysqld.inc
|
|
|
|
--echo # Search for : Insecure configuration for --secure-file-priv: Current
|
|
--echo # value does not restrict location of generated files.
|
|
--echo # Consider setting it to a valid, non-empty path.
|
|
let SEARCH_PATTERN= Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.;
|
|
--source include/search_pattern.inc
|
|
|
|
# Must show empty string
|
|
SHOW VARIABLES LIKE 'secure_file_priv';
|
|
|
|
--remove_file $server_log
|
|
|
|
--echo #-----------------------------------------------------------------------
|
|
|
|
--let $restart_parameters=restart:$common_restart_args --plugin-dir=$PLUGIN_DIR --secure-file-priv=$PLUGIN_DIR
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR $PLUGIN_DIR PLUGIN_DIR
|
|
--source include/restart_mysqld.inc
|
|
|
|
--echo # Search for : Insecure configuration for --secure-file-priv: Plugin
|
|
--echo # directory is accessible through --secure-file-priv.
|
|
--echo # Consider choosing a different directory.
|
|
let SEARCH_PATTERN= Insecure configuration for --secure-file-priv: Plugin directory is accessible through --secure-file-priv. Consider choosing a different directory.;
|
|
--source include/search_pattern.inc
|
|
|
|
--echo #-----------------------------------------------------------------------
|
|
|
|
--echo # Clean-up
|
|
# MTR will restart the server
|
|
--remove_file $server_log
|
|
|
|
--echo #-----------------------------------------------------------------------
|