1
SET @old_max_connections = @@max_connections;
2
SET @old_log_warnings = @@log_warnings;
3
SET GLOBAL max_connections=2;
4
SET GLOBAL LOG_WARNINGS = 0;
5
connect(localhost,root,,test,port,socket);
6
ERROR HY000: Too many connections
7
SET GLOBAL LOG_WARNINGS = 1;
8
connect(localhost,root,,test,port,socket);
9
ERROR HY000: Too many connections
10
SET GLOBAL LOG_WARNINGS = 0;
11
connect(localhost,root,,test,port,socket);
12
ERROR HY000: Too many connections
13
SET GLOBAL max_connections = @old_max_connections;
14
SET GLOBAL log_warnings = @old_log_warnings;
15
[log_grep.inc] file: percona.log_connection_error.err pattern: Too many connections
16
[log_grep.inc] lines: 1