Server IP : 104.21.38.3 / Your IP : 108.162.226.97 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/sys_vars/r/ |
Upload File : |
SET @global_start_value = @@global.slave_compressed_protocol; SELECT @global_start_value; @global_start_value 0 '#--------------------FN_DYNVARS_147_01------------------------#' SET @@global.slave_compressed_protocol = 1; SET @@global.slave_compressed_protocol = DEFAULT; SELECT @@global.slave_compressed_protocol; @@global.slave_compressed_protocol 0 '#---------------------FN_DYNVARS_147_02-------------------------#' SET slave_compressed_protocol = 1; ERROR HY000: Variable 'slave_compressed_protocol' is a GLOBAL variable and should be set with SET GLOBAL SELECT @@slave_compressed_protocol; @@slave_compressed_protocol 0 SELECT global.slave_compressed_protocol; ERROR 42S02: Unknown table 'global' in field list SET global slave_compressed_protocol = 1; SELECT @@global.slave_compressed_protocol; @@global.slave_compressed_protocol 1 '#--------------------FN_DYNVARS_147_03------------------------#' SET @@global.slave_compressed_protocol = 0; SELECT @@global.slave_compressed_protocol; @@global.slave_compressed_protocol 0 SET @@global.slave_compressed_protocol = 1; SELECT @@global.slave_compressed_protocol; @@global.slave_compressed_protocol 1 '#--------------------FN_DYNVARS_147_04-------------------------#' SET @@global.slave_compressed_protocol = -1; ERROR 42000: Variable 'slave_compressed_protocol' can't be set to the value of '-1' SET @@global.slave_compressed_protocol = 2; ERROR 42000: Variable 'slave_compressed_protocol' can't be set to the value of '2' SET @@global.slave_compressed_protocol = "1.00"; ERROR 42000: Variable 'slave_compressed_protocol' can't be set to the value of '1.00' SET @@global.slave_compressed_protocol = "Y"; ERROR 42000: Variable 'slave_compressed_protocol' can't be set to the value of 'Y' SET @@global.slave_compressed_protocol = YES; ERROR 42000: Variable 'slave_compressed_protocol' can't be set to the value of 'YES' SET @@global.slave_compressed_protocol = ONN; ERROR 42000: Variable 'slave_compressed_protocol' can't be set to the value of 'ONN' SET @@global.slave_compressed_protocol = 0FF; ERROR 42000: Variable 'slave_compressed_protocol' can't be set to the value of '0FF' SET @@global.slave_compressed_protocol = ' 1'; ERROR 42000: Variable 'slave_compressed_protocol' can't be set to the value of ' 1' SET @@global.slave_compressed_protocol = NO; ERROR 42000: Variable 'slave_compressed_protocol' can't be set to the value of 'NO' '#-------------------FN_DYNVARS_147_05----------------------------#' SET @@session.slave_compressed_protocol = 0; ERROR HY000: Variable 'slave_compressed_protocol' is a GLOBAL variable and should be set with SET GLOBAL SET @@slave_compressed_protocol = 0; ERROR HY000: Variable 'slave_compressed_protocol' is a GLOBAL variable and should be set with SET GLOBAL SET @@local.slave_compressed_protocol = 0; ERROR HY000: Variable 'slave_compressed_protocol' is a GLOBAL variable and should be set with SET GLOBAL SELECT @@session.slave_compressed_protocol; ERROR HY000: Variable 'slave_compressed_protocol' is a GLOBAL variable SELECT @@local.slave_compressed_protocol; ERROR HY000: Variable 'slave_compressed_protocol' is a GLOBAL variable '#----------------------FN_DYNVARS_147_06------------------------#' SELECT count(VARIABLE_VALUE) FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='slave_compressed_protocol'; count(VARIABLE_VALUE) 1 '#----------------------FN_DYNVARS_147_07------------------------#' SELECT IF(@@global.slave_compressed_protocol, "ON", "OFF") = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='slave_compressed_protocol'; IF(@@global.slave_compressed_protocol, "ON", "OFF") = VARIABLE_VALUE 1 SELECT @@global.slave_compressed_protocol; @@global.slave_compressed_protocol 1 SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='slave_compressed_protocol'; VARIABLE_VALUE ON '#---------------------FN_DYNVARS_147_08-------------------------#' SET @@global.slave_compressed_protocol = OFF; SELECT @@global.slave_compressed_protocol; @@global.slave_compressed_protocol 0 SET @@global.slave_compressed_protocol = ON; SELECT @@global.slave_compressed_protocol; @@global.slave_compressed_protocol 1 '#---------------------FN_DYNVARS_147_09----------------------#' SET @@global.slave_compressed_protocol = TRUE; SELECT @@global.slave_compressed_protocol; @@global.slave_compressed_protocol 1 SET @@global.slave_compressed_protocol = FALSE; SELECT @@global.slave_compressed_protocol; @@global.slave_compressed_protocol 0 SET @@global.slave_compressed_protocol = @global_start_value; SELECT @@global.slave_compressed_protocol; @@global.slave_compressed_protocol 0