| 1 |
# |
| 2 |
# Show the original variable value (from -master.opt). |
| 3 |
# |
| 4 |
SELECT @@global.innodb_redo_log_archive_dirs; |
| 5 |
@@global.innodb_redo_log_archive_dirs |
| 6 |
command_line_label:/ |
| 7 |
|
| 8 |
# |
| 9 |
# Try to start redo log archiving with that value. |
| 10 |
# |
| 11 |
DO innodb_redo_log_archive_start('command_line_label'); |
| 12 |
Got one of the listed errors |
| 13 |
|
| 14 |
# |
| 15 |
# Set innodb_redo_log_archive_dirs for the following tests. |
| 16 |
# |
| 17 |
SET @@global.innodb_redo_log_archive_dirs = 'label1:IRLA_DIRECTORY_1'; |
| 18 |
|
| 19 |
# |
| 20 |
# Directory with world permissions |
| 21 |
# |
| 22 |
DO innodb_redo_log_archive_start('label1'); |
| 23 |
ERROR HY000: Redo log archive directory 'IRLA_DIRECTORY_1' is accessible to all OS users |
| 24 |
|
| 25 |
# |
| 26 |
# Redo log archive file is read-only. No world permissions |
| 27 |
# |
| 28 |
DO innodb_redo_log_archive_start('label1'); |
| 29 |
# |
| 30 |
# Check the redo log archive file for existence and permissions. |
| 31 |
# |
| 32 |
include/assert.inc [File permissions should be equal to 440] |
| 33 |
# |
| 34 |
# Stop redo log archiving. |
| 35 |
# |
| 36 |
DO innodb_redo_log_archive_stop(); |
| 37 |
# |
| 38 |
# Check the redo log archive file again. |
| 39 |
# |
| 40 |
include/assert.inc [File permissions should be equal to 440] |
| 41 |
# |
| 42 |
# Remove the redo log archive file. |
| 43 |
# |
| 44 |
|
| 45 |
# |
| 46 |
# Cleanup |
| 47 |
# |
| 48 |
SET @@global.innodb_redo_log_archive_dirs = 'command_line_label:/'; |