mirror of
https://github.com/MariaDB/server.git
synced 2025-11-24 06:01:25 +03:00
16 lines
532 B
Plaintext
16 lines
532 B
Plaintext
SET @old_max_connections = @@max_connections;
|
|
SET @old_log_warnings = @@log_warnings;
|
|
SET GLOBAL max_connections=2;
|
|
SET GLOBAL LOG_WARNINGS = 0;
|
|
connect(localhost,root,,test,port,socket);
|
|
ERROR HY000: Too many connections
|
|
SET GLOBAL LOG_WARNINGS = 1;
|
|
connect(localhost,root,,test,port,socket);
|
|
ERROR HY000: Too many connections
|
|
SET GLOBAL LOG_WARNINGS = 0;
|
|
connect(localhost,root,,test,port,socket);
|
|
ERROR HY000: Too many connections
|
|
SET GLOBAL max_connections = @old_max_connections;
|
|
SET GLOBAL log_warnings = @old_log_warnings;
|
|
1
|