|
| 1 | +'#________________________VAR_09_INNODB_LOG_FILE_SIZE__________________#' |
| 2 | +echo '##' |
| 3 | +--echo '#---------------------WL6372_VAR_9_01----------------------#' |
| 4 | +#################################################################### |
| 5 | +# Checking default value # |
| 6 | +#################################################################### |
| 7 | +SELECT COUNT(@@GLOBAL.innodb_log_file_size) |
| 8 | +1 Expected |
| 9 | +SELECT @@GLOBAL.innodb_log_file_size; |
| 10 | +@@GLOBAL.innodb_log_file_size |
| 11 | +5242880 |
| 12 | +5242880 Expected |
| 13 | +'#---------------------WL6372_VAR_9_02----------------------#' |
| 14 | +SET @@local.innodb_log_file_size=1; |
| 15 | +ERROR HY000: Variable 'innodb_log_file_size' is a read only variable |
| 16 | +Expected error 'Read only variable' |
| 17 | +SET @@session.innodb_log_file_size=1; |
| 18 | +ERROR HY000: Variable 'innodb_log_file_size' is a read only variable |
| 19 | +Expected error 'Read only variable' |
| 20 | +SET @@GLOBAL.innodb_log_file_size=1; |
| 21 | +ERROR HY000: Variable 'innodb_log_file_size' is a read only variable |
| 22 | +Expected error 'Read only variable' |
| 23 | +SET @@GLOBAL.innodb_log_file_size=DEFAULT; |
| 24 | +ERROR HY000: Variable 'innodb_log_file_size' is a read only variable |
| 25 | +Expected error 'Read only variable' |
| 26 | +SELECT COUNT(@@GLOBAL.innodb_log_file_size); |
| 27 | +COUNT(@@GLOBAL.innodb_log_file_size) |
| 28 | +1 |
| 29 | +1 Expected |
| 30 | +'#---------------------WL6372_VAR_9_03----------------------#' |
| 31 | +SELECT @@GLOBAL.innodb_log_file_size = VARIABLE_VALUE |
| 32 | +FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES |
| 33 | +WHERE VARIABLE_NAME='innodb_log_file_size'; |
| 34 | +@@GLOBAL.innodb_log_file_size = VARIABLE_VALUE |
| 35 | +1 |
| 36 | +1 Expected |
| 37 | +SELECT COUNT(@@GLOBAL.innodb_log_file_size); |
| 38 | +COUNT(@@GLOBAL.innodb_log_file_size) |
| 39 | +1 |
| 40 | +1 Expected |
| 41 | +SELECT COUNT(VARIABLE_VALUE) |
| 42 | +FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES |
| 43 | +WHERE VARIABLE_NAME='innodb_log_file_size'; |
| 44 | +COUNT(VARIABLE_VALUE) |
| 45 | +1 |
| 46 | +1 Expected |
| 47 | +'#---------------------WL6372_VAR_9_04----------------------#' |
| 48 | +SELECT @@innodb_log_file_size = @@GLOBAL.innodb_log_file_size; |
| 49 | +@@innodb_log_file_size = @@GLOBAL.innodb_log_file_size |
| 50 | +1 |
| 51 | +1 Expected |
| 52 | +SELECT COUNT(@@local.innodb_log_file_size); |
| 53 | +ERROR HY000: Variable 'innodb_log_file_size' is a GLOBAL variable |
| 54 | +Expected error 'Variable is a GLOBAL variable' |
| 55 | +SELECT COUNT(@@SESSION.innodb_log_file_size); |
| 56 | +ERROR HY000: Variable 'innodb_log_file_size' is a GLOBAL variable |
| 57 | +Expected error 'Variable is a GLOBAL variable' |
| 58 | +SELECT COUNT(@@GLOBAL.innodb_log_file_size); |
| 59 | +COUNT(@@GLOBAL.innodb_log_file_size) |
| 60 | +1 |
| 61 | +1 Expected |
| 62 | +SELECT innodb_log_file_size = @@SESSION.innodb_log_file_size; |
| 63 | +ERROR 42S22: Unknown column 'innodb_log_file_size' in 'field list' |
| 64 | +Expected error 'Unknown column innodb_log_file_size in field list' |
| 65 | +'#---------------------WL6372_VAR_9_05----------------------#' |
| 66 | +Check the size of the vardir |
| 67 | +The output size is in unit blocks |
| 68 | +TRUE |
| 69 | +TRUE Expected |
| 70 | +'#---------------------WL6372_VAR_9_06----------------------#' |
| 71 | +The size of the ib_logfile(0/1): 5242880 |
| 72 | +The size of the ib_logfile(0/1): 5242880 |
| 73 | +5242880 expected |
0 commit comments