| 1 |
--source include/no_valgrind_without_big.inc |
| 2 |
|
| 3 |
--echo #----------------------------------------------------------------------- |
| 4 |
--echo # Setup |
| 5 |
let server_log= $MYSQLTEST_VARDIR/log/sfpw.err; |
| 6 |
let SEARCH_FILE= $server_log; |
| 7 |
let PLUGIN_DIR= $MYSQLTEST_VARDIR/tmp; |
| 8 |
let common_restart_args= --log-error=$server_log; |
| 9 |
--echo #----------------------------------------------------------------------- |
| 10 |
|
| 11 |
--let $restart_parameters=restart:$common_restart_args |
| 12 |
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR |
| 13 |
--source include/restart_mysqld.inc |
| 14 |
|
| 15 |
--echo # Search for : Insecure configuration for --secure-file-priv: Current |
| 16 |
--echo # value does not restrict location of generated files. |
| 17 |
--echo # Consider setting it to a valid, non-empty path. |
| 18 |
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.; |
| 19 |
--source include/search_pattern.inc |
| 20 |
|
| 21 |
# Must show empty string |
| 22 |
SHOW VARIABLES LIKE 'secure_file_priv'; |
| 23 |
|
| 24 |
--remove_file $server_log |
| 25 |
|
| 26 |
--echo #----------------------------------------------------------------------- |
| 27 |
|
| 28 |
--let $restart_parameters=restart:$common_restart_args --plugin-dir=$PLUGIN_DIR --secure-file-priv=$PLUGIN_DIR |
| 29 |
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR $PLUGIN_DIR PLUGIN_DIR |
| 30 |
--source include/restart_mysqld.inc |
| 31 |
|
| 32 |
--echo # Search for : Insecure configuration for --secure-file-priv: Plugin |
| 33 |
--echo # directory is accessible through --secure-file-priv. |
| 34 |
--echo # Consider choosing a different directory. |
| 35 |
let SEARCH_PATTERN= Insecure configuration for --secure-file-priv: Plugin directory is accessible through --secure-file-priv. Consider choosing a different directory.; |
| 36 |
--source include/search_pattern.inc |
| 37 |
|
| 38 |
--echo #----------------------------------------------------------------------- |
| 39 |
|
| 40 |
--echo # Clean-up |
| 41 |
--remove_file $server_log |
| 42 |
|
| 43 |
--echo #----------------------------------------------------------------------- |
| 44 |
|
| 45 |
# Restore default settings in opt file and clean up |
| 46 |
--let $restart_parameters = restart: |
| 47 |
--source include/restart_mysqld.inc |