Server IP : 172.67.216.182 / Your IP : 172.68.164.28 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/t/ |
Upload File : |
# # Show the global value; # SELECT @@global.avoid_temporal_upgrade; SHOW GLOBAL VARIABLES LIKE 'avoid_temporal_upgrade'; --disable_warnings SELECT * FROM information_schema.global_variables WHERE variable_name='avoid_temporal_upgrade'; --enable_warnings --echo #It is not a session variable. --error ER_INCORRECT_GLOBAL_LOCAL_VAR SELECT @@session.avoid_temporal_upgrade; SHOW SESSION VARIABLES LIKE 'avoid_temporal_upgrade'; --disable_warnings SELECT * FROM information_schema.session_variables WHERE variable_name='avoid_temporal_upgrade'; --enable_warnings --error ER_GLOBAL_VARIABLE SET SESSION avoid_temporal_upgrade= ON; --echo #Test setting the variable to various values. --echo #Boolean values. SET GLOBAL avoid_temporal_upgrade= ON; SELECT @@global.avoid_temporal_upgrade; SET GLOBAL avoid_temporal_upgrade= OFF; SELECT @@global.avoid_temporal_upgrade; SET GLOBAL avoid_temporal_upgrade= 1; SELECT @@global.avoid_temporal_upgrade; SET GLOBAL avoid_temporal_upgrade= 0; SELECT @@global.avoid_temporal_upgrade; --echo #Test for DEFAULT value. SET GLOBAL avoid_temporal_upgrade= DEFAULT; SELECT @@global.avoid_temporal_upgrade; --echo #Test for invalid value. --error ER_WRONG_VALUE_FOR_VAR SET GLOBAL avoid_temporal_upgrade= 2; --echo #Test for invalid statement for setting the --echo #global variable. --error ER_GLOBAL_VARIABLE SET avoid_temporal_upgrade= 1; --echo #Fetches the current global value for the variable. SELECT @@avoid_temporal_upgrade;