1
############# mysql-test\t\SLOW_LAUNCH_time_func.test ##########################
3
# Variable Name: slow_launch_time #
5
# Access Type: Dynamic #
11
# Creation Date: 2008-03-02 #
12
# Author: Sharique Abdullah #
14
# Description: Test Cases of Dynamic System Variable "slow_launch_time " #
15
# that checks behavior of this variable in the following ways #
16
# * Functionality based on different values #
18
#Reference: http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#
19
# option_mysqld_slow_launch_time #
21
################################################################################
27
--source include/not_embedded.inc
29
SET @global_slow_launch_time = @@GLOBAL.slow_launch_time;
32
--echo '#--------------------FN_DYNVARS_124_01-------------------------#'
34
#####################################
35
# Increase number of connection #
36
#####################################
38
--echo ** Connection default **
41
SET @@GLOBAL.slow_launch_time=0;
42
SELECT @@GLOBAL.slow_launch_time;
44
--echo ** Connecting conn5 using username 'root' **
45
CONNECT (conn5,localhost,root,,);
46
--echo ** Connecting conn6 using username 'root' **
47
CONNECT (conn6,localhost,root,,);
48
--echo ** Connecting conn7 using username 'root' **
49
CONNECT (conn7,localhost,root,,);
50
--echo ** Connecting conn8 using username 'root' **
51
CONNECT (conn8,localhost,root,,);
52
--echo ** Connecting conn9 using username 'root' **
53
CONNECT (conn9,localhost,root,,);
54
--echo ** Connecting conn10 using username 'root' **
55
CONNECT (conn10,localhost,root,,);
56
--echo ** Connecting conn11 using username 'root' **
57
CONNECT (conn11,localhost,root,,);
58
--echo ** Connecting conn12 using username 'root' **
59
CONNECT (conn12,localhost,root,,);
60
--echo ** Connecting conn13 using username 'root' **
61
CONNECT (conn13,localhost,root,,);
62
--echo ** Connecting conn14 using username 'root' **
63
CONNECT (conn14,localhost,root,,);
64
--echo ** Connecting conn15 using username 'root' **
65
CONNECT (conn15,localhost,root,,);
66
--echo ** Connecting conn16 using username 'root' **
67
CONNECT (conn16,localhost,root,,);
71
# Checking status of slow_launch_threads
74
show status like 'slow_launch_threads';
81
--echo ** Connection default **
84
--echo ** Disconnecting conn5 **
86
--echo ** Disconnecting conn6 **
88
--echo ** Disconnecting conn7 **
90
--echo ** Disconnecting conn8 **
92
--echo ** Disconnecting conn9 **
94
--echo ** Disconnecting conn10 **
96
--echo ** Disconnecting conn11 **
98
--echo ** Disconnecting conn12 **
100
--echo ** Disconnecting conn13 **
102
--echo ** Disconnecting conn14 **
104
--echo ** Disconnecting conn15 **
106
--echo ** Disconnecting conn16 **
109
SET @@GLOBAL.slow_launch_time = @global_slow_launch_time;