Server IP : 172.67.216.182 / Your IP : 172.70.189.105 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 : |
# Initial values SELECT @@global.max_execution_time, @@session.max_execution_time; @@global.max_execution_time @@session.max_execution_time 0 0 # Save initial value SET @start_global_value= @@global.max_execution_time; SELECT @start_global_value; @start_global_value 0 SET @start_session_value = @@session.max_execution_time; SELECT @start_session_value; @start_session_value 0 # Display the DEFAULT value of max_execution_time SET @@session.max_execution_time = 20000; SET @@session.max_execution_time = DEFAULT; SELECT @@session.max_execution_time; @@session.max_execution_time 0 SET @@global.max_execution_time = 20000; SET @@global.max_execution_time = DEFAULT; SELECT @@global.max_execution_time; @@global.max_execution_time 0 # Check the DEFAULT value of max_execution_time SET @@global.max_execution_time = DEFAULT; SELECT @@global.max_execution_time = 28800; @@global.max_execution_time = 28800 0 SET @@session.max_execution_time = DEFAULT; SELECT @@session.max_execution_time = 28800; @@session.max_execution_time = 28800 0 # Check Max value for max_execution_time. "Max value for @@global.max_execution_time is set properly." "Max value for @@session.max_execution_time is set properly." SET @@global.max_execution_time = 0; SELECT @@global.max_execution_time; @@global.max_execution_time 0 SET @@session.max_execution_time = 0; SELECT @@global.max_execution_time; @@global.max_execution_time 0 # Change the value of max_execution_time to a valid value for SESSION scope SET @@session.max_execution_time = 10000; SELECT @@global.max_execution_time, @@session.max_execution_time; @@global.max_execution_time @@session.max_execution_time 0 10000 SET @@session.max_execution_time = 50050; SELECT @@global.max_execution_time, @@session.max_execution_time; @@global.max_execution_time @@session.max_execution_time 0 50050 SET @@session.max_execution_time = 65535; SELECT @@global.max_execution_time, @@session.max_execution_time; @@global.max_execution_time @@session.max_execution_time 0 65535 # Change the value of max_execution_time to an invalid value # SET @@global.max_execution_time = -2; Warnings: Warning 1292 Truncated incorrect max_execution_time value: '-2' SELECT @@global.max_execution_time; @@global.max_execution_time 0 SET @@global.max_execution_time = 65530.34; ERROR 42000: Incorrect argument type to variable 'max_execution_time' SELECT @@global.max_execution_time; @@global.max_execution_time 0 SET @@global.max_execution_time = test; ERROR 42000: Incorrect argument type to variable 'max_execution_time' SELECT @@global.max_execution_time; @@global.max_execution_time 0 # Change the value of max_execution_time to a valid value for SESSION scope SET @@session.max_execution_time = 10000; SELECT @@global.max_execution_time, @@session.max_execution_time; @@global.max_execution_time @@session.max_execution_time 0 10000 SET @@session.max_execution_time = 50050; SELECT @@global.max_execution_time, @@session.max_execution_time; @@global.max_execution_time @@session.max_execution_time 0 50050 SET @@session.max_execution_time = 65535; SELECT @@global.max_execution_time, @@session.max_execution_time; @@global.max_execution_time @@session.max_execution_time 0 65535 # Change the value of max_execution_time to an invalid value # SET @@global.max_execution_time = -2; Warnings: Warning 1292 Truncated incorrect max_execution_time value: '-2' SELECT @@global.max_execution_time; @@global.max_execution_time 0 SET @@global.max_execution_time = 65530.34; ERROR 42000: Incorrect argument type to variable 'max_execution_time' SELECT @@global.max_execution_time; @@global.max_execution_time 0 SET @@global.max_execution_time = test; ERROR 42000: Incorrect argument type to variable 'max_execution_time' SELECT @@global.max_execution_time; @@global.max_execution_time 0 SET @@global.max_execution_time = ""; ERROR 42000: Incorrect argument type to variable 'max_execution_time' SELECT @@global.max_execution_time; @@global.max_execution_time 0 SET @@global.max_execution_time = "*"; ERROR 42000: Incorrect argument type to variable 'max_execution_time' SELECT @@global.max_execution_time; @@global.max_execution_time 0 SET @@global.max_execution_time = NULL; ERROR 42000: Incorrect argument type to variable 'max_execution_time' SELECT @@global.max_execution_time; @@global.max_execution_time 0 SET @@global.max_execution_time = "0"; ERROR 42000: Incorrect argument type to variable 'max_execution_time' SELECT @@global.max_execution_time; @@global.max_execution_time 0 SET @@global.max_execution_time = "*#$**$(@(@ ##@"; ERROR 42000: Incorrect argument type to variable 'max_execution_time' SELECT @@global.max_execution_time; @@global.max_execution_time 0 SET @@session.max_execution_time = -2; Warnings: Warning 1292 Truncated incorrect max_execution_time value: '-2' SELECT @@session.max_execution_time; @@session.max_execution_time 0 SET @@session.max_execution_time = 65530.34; ERROR 42000: Incorrect argument type to variable 'max_execution_time' SELECT @@session.max_execution_time; @@session.max_execution_time 0 SET @@session.max_execution_time = test; ERROR 42000: Incorrect argument type to variable 'max_execution_time' SELECT @@session.max_execution_time; @@session.max_execution_time 0 SET @@session.max_execution_time = ""; ERROR 42000: Incorrect argument type to variable 'max_execution_time' SELECT @@session.max_execution_time; @@session.max_execution_time 0 SET @@session.max_execution_time = "*"; ERROR 42000: Incorrect argument type to variable 'max_execution_time' SELECT @@session.max_execution_time; @@session.max_execution_time 0 SET @@session.max_execution_time = NULL; ERROR 42000: Incorrect argument type to variable 'max_execution_time' SELECT @@session.max_execution_time; @@session.max_execution_time 0 SET @@session.max_execution_time = "0"; ERROR 42000: Incorrect argument type to variable 'max_execution_time' SELECT @@session.max_execution_time; @@session.max_execution_time 0 SET @@session.max_execution_time = "*#$**$(@(@ ##@"; ERROR 42000: Incorrect argument type to variable 'max_execution_time' SELECT @@session.max_execution_time; @@session.max_execution_time 0 # Check if the value in GLOBAL Table matches value in variable SELECT @@global.max_execution_time = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='max_execution_time'; @@global.max_execution_time = VARIABLE_VALUE 1 # Check if the value in SESSION Table matches value in variable SELECT @@session.max_execution_time = VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='max_execution_time'; @@session.max_execution_time = VARIABLE_VALUE 1 # Check if TRUE and FALSE values can be used on variable SET @@global.max_execution_time = TRUE; SELECT @@global.max_execution_time; @@global.max_execution_time 1 SET @@global.max_execution_time = FALSE; SELECT @@global.max_execution_time; @@global.max_execution_time 0 SET @@session.max_execution_time = TRUE; SELECT @@session.max_execution_time; @@session.max_execution_time 1 SET @@session.max_execution_time = FALSE; SELECT @@session.max_execution_time; @@session.max_execution_time 0 # Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable SET @@max_execution_time = 10000; SELECT @@max_execution_time = @@local.max_execution_time; @@max_execution_time = @@local.max_execution_time 1 SELECT @@local.max_execution_time = @@session.max_execution_time; @@local.max_execution_time = @@session.max_execution_time 1 # Check if max_execution_time can be accessed with and without @@ sign SET max_execution_time = 10000; SELECT @@max_execution_time; @@max_execution_time 10000 SELECT local.max_execution_time; ERROR 42S02: Unknown table 'local' in field list SELECT session.max_execution_time; ERROR 42S02: Unknown table 'session' in field list # Restore initial value SET @@global.max_execution_time = @start_global_value; SELECT @@global.max_execution_time; @@global.max_execution_time 0 SET @@session.max_execution_time = @start_session_value; SELECT @@session.max_execution_time; @@session.max_execution_time 0