Server IP : 172.67.216.182 / Your IP : 172.71.152.64 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_purged; SELECT @start_global_value; @start_global_value SET @sql_log_bin_start_value = @@session.sql_log_bin; select @@global.gtid_purged; @@global.gtid_purged select @@session.gtid_purged; ERROR HY000: Variable 'gtid_purged' is a GLOBAL variable show global variables like 'gtid_purged'; Variable_name Value gtid_purged show session variables like 'gtid_purged'; Variable_name Value gtid_purged select * from information_schema.global_variables where variable_name='gtid_purged'; VARIABLE_NAME VARIABLE_VALUE GTID_PURGED select * from information_schema.session_variables where variable_name='gtid_purged'; VARIABLE_NAME VARIABLE_VALUE GTID_PURGED set @@global.gtid_purged = NULL; ERROR 42000: Variable 'gtid_purged' can't be set to the value of 'NULL' select @@global.gtid_purged; @@global.gtid_purged set @@global.gtid_purged = default; ERROR 42000: Variable 'gtid_purged' doesn't have a default value select @@global.gtid_purged; @@global.gtid_purged SET @@global.gtid_purged= '11111111-1111-1111-1111-111111111111:1-2'; SELECT @@global.gtid_purged; @@global.gtid_purged 11111111-1111-1111-1111-111111111111:1-2 SET @@global.gtid_purged= '11111111-1111-1111-1111-111111111111:3'; ERROR HY000: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_EXECUTED is empty. SELECT @@global.gtid_purged; @@global.gtid_purged 11111111-1111-1111-1111-111111111111:1-2 RESET MASTER; SET AUTOCOMMIT= OFF; SET @@global.gtid_purged= '11111111-1111-1111-1111-111111111111:4-5'; SET @@session.sql_log_bin= @sql_log_bin_start_value; SET AUTOCOMMIT= ON; RESET MASTER; SELECT @@global.gtid_purged; @@global.gtid_purged