Server IP : 104.21.38.3 / Your IP : 172.70.92.154 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 @start_value = @@global.max_prepared_stmt_count; SELECT @start_value; @start_value 16382 '#--------------------FN_DYNVARS_081_01------------------------#' SET @@global.max_prepared_stmt_count = 5000; SET @@global.max_prepared_stmt_count = DEFAULT; SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 16382 '#---------------------FN_DYNVARS_081_02-------------------------#' SET @@global.max_prepared_stmt_count = @start_value; SELECT @@global.max_prepared_stmt_count = 16382; @@global.max_prepared_stmt_count = 16382 1 '#--------------------FN_DYNVARS_081_03------------------------#' SET @@global.max_prepared_stmt_count = 0; SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 0 SET @@global.max_prepared_stmt_count = 1; SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 1 SET @@global.max_prepared_stmt_count = 1048576; SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 1048576 SET @@global.max_prepared_stmt_count = 1048575; SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 1048575 SET @@global.max_prepared_stmt_count = 65535; SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 65535 '#--------------------FN_DYNVARS_081_04-------------------------#' SET @@global.max_prepared_stmt_count = -1; Warnings: Warning 1292 Truncated incorrect max_prepared_stmt_count value: '-1' SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 0 SET @@global.max_prepared_stmt_count = 100000000000; Warnings: Warning 1292 Truncated incorrect max_prepared_stmt_count value: '100000000000' SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 1048576 SET @@global.max_prepared_stmt_count = 10000.01; ERROR 42000: Incorrect argument type to variable 'max_prepared_stmt_count' SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 1048576 SET @@global.max_prepared_stmt_count = -1024; Warnings: Warning 1292 Truncated incorrect max_prepared_stmt_count value: '-1024' SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 0 SET @@global.max_prepared_stmt_count = 1048577; Warnings: Warning 1292 Truncated incorrect max_prepared_stmt_count value: '1048577' SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 1048576 SET @@global.max_prepared_stmt_count = 104857612; Warnings: Warning 1292 Truncated incorrect max_prepared_stmt_count value: '104857612' SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 1048576 SET @@global.max_prepared_stmt_count = ON; ERROR 42000: Incorrect argument type to variable 'max_prepared_stmt_count' SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 1048576 SET @@global.max_prepared_stmt_count = 'test'; ERROR 42000: Incorrect argument type to variable 'max_prepared_stmt_count' SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 1048576 SET @@global.max_prepared_stmt_count = ' '; ERROR 42000: Incorrect argument type to variable 'max_prepared_stmt_count' SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 1048576 '#-------------------FN_DYNVARS_081_05----------------------------#' SET @@session.max_prepared_stmt_count = 4096; ERROR HY000: Variable 'max_prepared_stmt_count' is a GLOBAL variable and should be set with SET GLOBAL SELECT @@session.max_prepared_stmt_count; ERROR HY000: Variable 'max_prepared_stmt_count' is a GLOBAL variable '#----------------------FN_DYNVARS_081_06------------------------#' SELECT @@global.max_prepared_stmt_count = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='max_prepared_stmt_count'; @@global.max_prepared_stmt_count = VARIABLE_VALUE 1 SELECT @@max_prepared_stmt_count = VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='max_prepared_stmt_count'; @@max_prepared_stmt_count = VARIABLE_VALUE 1 '#---------------------FN_DYNVARS_081_07----------------------#' SET @@global.max_prepared_stmt_count = TRUE; SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 1 SET @@global.max_prepared_stmt_count = FALSE; SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 0 '#---------------------FN_DYNVARS_081_08----------------------#' SET @@global.max_prepared_stmt_count = 5000; SELECT @@max_prepared_stmt_count = @@global.max_prepared_stmt_count; @@max_prepared_stmt_count = @@global.max_prepared_stmt_count 1 '#---------------------FN_DYNVARS_081_09----------------------#' SET max_prepared_stmt_count = 6000; ERROR HY000: Variable 'max_prepared_stmt_count' is a GLOBAL variable and should be set with SET GLOBAL SELECT @@max_prepared_stmt_count; @@max_prepared_stmt_count 5000 SET local.max_prepared_stmt_count = 7000; ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'local.max_prepared_stmt_count = 7000' at line 1 SELECT local.max_prepared_stmt_count; ERROR 42S02: Unknown table 'local' in field list SET global.max_prepared_stmt_count = 8000; ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'global.max_prepared_stmt_count = 8000' at line 1 SELECT global.max_prepared_stmt_count; ERROR 42S02: Unknown table 'global' in field list SELECT max_prepared_stmt_count = @@session.max_prepared_stmt_count; ERROR 42S22: Unknown column 'max_prepared_stmt_count' in 'field list' SET @@global.max_prepared_stmt_count = @start_value; SELECT @@global.max_prepared_stmt_count; @@global.max_prepared_stmt_count 16382