Server IP : 104.21.38.3 / Your IP : 162.158.88.75 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 : |
RESET MASTER; SET @start_global_value = @@global.gtid_mode; SELECT @start_global_value; @start_global_value OFF SET @start_enforce_gtid_consistency= @@global.enforce_gtid_consistency; SET @@global.enforce_gtid_consistency = ON; select @@global.gtid_mode; @@global.gtid_mode OFF select @@session.gtid_mode; ERROR HY000: Variable 'gtid_mode' is a GLOBAL variable set gtid_mode = @start_global_value; ERROR HY000: Variable 'gtid_mode' is a GLOBAL variable and should be set with SET GLOBAL set @@session.gtid_mode = @start_global_value; ERROR HY000: Variable 'gtid_mode' is a GLOBAL variable and should be set with SET GLOBAL show global variables like 'gtid_mode'; Variable_name Value gtid_mode OFF show session variables like 'gtid_mode'; Variable_name Value gtid_mode OFF select * from information_schema.global_variables where variable_name='gtid_mode'; VARIABLE_NAME VARIABLE_VALUE GTID_MODE OFF select * from information_schema.session_variables where variable_name='gtid_mode'; VARIABLE_NAME VARIABLE_VALUE GTID_MODE OFF set global gtid_mode = OFF; set global gtid_mode = ON_PERMISSIVE; ERROR HY000: The value of @@GLOBAL.GTID_MODE can only be changed one step at a time: OFF <-> OFF_PERMISSIVE <-> ON_PERMISSIVE <-> ON. Also note that this value must be stepped up or down simultaneously on all servers. See the Manual for instructions. set global gtid_mode = ON; ERROR HY000: The value of @@GLOBAL.GTID_MODE can only be changed one step at a time: OFF <-> OFF_PERMISSIVE <-> ON_PERMISSIVE <-> ON. Also note that this value must be stepped up or down simultaneously on all servers. See the Manual for instructions. set global gtid_mode = OFF_PERMISSIVE; set global gtid_mode = OFF_PERMISSIVE; set global gtid_mode = ON; ERROR HY000: The value of @@GLOBAL.GTID_MODE can only be changed one step at a time: OFF <-> OFF_PERMISSIVE <-> ON_PERMISSIVE <-> ON. Also note that this value must be stepped up or down simultaneously on all servers. See the Manual for instructions. set global gtid_mode = ON_PERMISSIVE; set global gtid_mode = ON_PERMISSIVE; set global gtid_mode = OFF; ERROR HY000: The value of @@GLOBAL.GTID_MODE can only be changed one step at a time: OFF <-> OFF_PERMISSIVE <-> ON_PERMISSIVE <-> ON. Also note that this value must be stepped up or down simultaneously on all servers. See the Manual for instructions. set global gtid_mode = ON; set global gtid_mode = ON; set global gtid_mode = OFF; ERROR HY000: The value of @@GLOBAL.GTID_MODE can only be changed one step at a time: OFF <-> OFF_PERMISSIVE <-> ON_PERMISSIVE <-> ON. Also note that this value must be stepped up or down simultaneously on all servers. See the Manual for instructions. set global gtid_mode = OFF_PERMISSIVE; ERROR HY000: The value of @@GLOBAL.GTID_MODE can only be changed one step at a time: OFF <-> OFF_PERMISSIVE <-> ON_PERMISSIVE <-> ON. Also note that this value must be stepped up or down simultaneously on all servers. See the Manual for instructions. set global gtid_mode = ON_PERMISSIVE; set global gtid_mode = OFF_PERMISSIVE; set global gtid_mode = OFF; set global gtid_mode = NULL; ERROR 42000: Variable 'gtid_mode' can't be set to the value of 'NULL' select @@global.gtid_mode; @@global.gtid_mode OFF set global gtid_mode = default; select @@global.gtid_mode; @@global.gtid_mode OFF set global gtid_mode = OFF_PERMISSIVE; set global gtid_mode = default; select @@global.gtid_mode; @@global.gtid_mode OFF set global gtid_mode = OFF_PERMISSIVE; set global gtid_mode = ON_PERMISSIVE; set global gtid_mode = default; ERROR HY000: The value of @@GLOBAL.GTID_MODE can only be changed one step at a time: OFF <-> OFF_PERMISSIVE <-> ON_PERMISSIVE <-> ON. Also note that this value must be stepped up or down simultaneously on all servers. See the Manual for instructions. select @@global.gtid_mode; @@global.gtid_mode ON_PERMISSIVE set global gtid_mode = ON; set global gtid_mode = default; ERROR HY000: The value of @@GLOBAL.GTID_MODE can only be changed one step at a time: OFF <-> OFF_PERMISSIVE <-> ON_PERMISSIVE <-> ON. Also note that this value must be stepped up or down simultaneously on all servers. See the Manual for instructions. select @@global.gtid_mode; @@global.gtid_mode ON set session gtid_mode = ON; ERROR HY000: Variable 'gtid_mode' is a GLOBAL variable and should be set with SET GLOBAL set global gtid_mode = on_permissive; set global sql_slave_skip_counter = 1; set global gtid_mode = on; ERROR HY000: SET @@GLOBAL.GTID_MODE = ON is not allowed because @@GLOBAL.SQL_SLAVE_SKIP_COUNTER is greater than zero. set global sql_slave_skip_counter = 0; set global gtid_mode = on; set global gtid_mode = on_permissive; SET @@global.enforce_gtid_consistency = OFF; set global gtid_mode = off_permissive; set global gtid_mode = off; set global gtid_mode = off_permissive; set global gtid_mode = on_permissive; set global gtid_mode = on; ERROR HY000: SET @@GLOBAL.GTID_MODE = ON is not allowed because ENFORCE_GTID_CONSISTENCY is not ON. SET @@global.enforce_gtid_consistency = WARN; set global gtid_mode = off_permissive; set global gtid_mode = off; set global gtid_mode = off_permissive; set global gtid_mode = on_permissive; set global gtid_mode = on; ERROR HY000: SET @@GLOBAL.GTID_MODE = ON is not allowed because ENFORCE_GTID_CONSISTENCY is not ON. CREATE TABLE t1 (a INT); SET AUTOCOMMIT = 0; SET SESSION GTID_NEXT = 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1'; INSERT INTO t1 VALUES (1); SET GLOBAL GTID_MODE = 'off_permissive'; ERROR HY000: The system variable gtid_mode cannot be set when there is an ongoing transaction. COMMIT; SET SESSION GTID_NEXT = 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:2'; SET GLOBAL GTID_MODE = 'off_permissive'; ERROR HY000: Variable gtid_mode cannot be changed by a client that owns a GTID. The client owns aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:2. Ownership is released on COMMIT or ROLLBACK. COMMIT; SET GTID_NEXT = 'ANONYMOUS'; SET GLOBAL GTID_MODE = 'off_permissive'; ERROR HY000: Variable gtid_mode cannot be changed by a client that owns a GTID. The client owns ANONYMOUS. Ownership is released on COMMIT or ROLLBACK. COMMIT; SET AUTOCOMMIT = 1; SET SESSION GTID_NEXT = 'AUTOMATIC'; DROP TABLE t1; SET GLOBAL GTID_MODE ='off_permissive'; SET GLOBAL GTID_MODE = 'off'; SET @@global.enforce_gtid_consistency = @start_enforce_gtid_consistency;