2019-08-30 16:06:54 +03:00
|
|
|
set @save_log_warnings=@@log_warnings, @save_max_connections=@@max_connections;
|
2012-07-31 18:32:46 +02:00
|
|
|
SET GLOBAL log_warnings=4;
|
2018-03-22 20:03:54 +02:00
|
|
|
SET GLOBAL max_connections=10;
|
2018-04-10 17:43:18 +03:00
|
|
|
connect tmp_con1,localhost,root,,;
|
|
|
|
connect tmp_con2,localhost,root,,;
|
|
|
|
connect tmp_con3,localhost,root,,;
|
|
|
|
connect tmp_con4,localhost,root,,;
|
|
|
|
connect tmp_con5,localhost,root,,;
|
|
|
|
connect tmp_con6,localhost,root,,;
|
|
|
|
connect tmp_con7,localhost,root,,;
|
|
|
|
connect tmp_con8,localhost,root,,;
|
2016-03-25 20:51:22 +04:00
|
|
|
connect con1,localhost,root,,;
|
2012-07-31 18:32:46 +02:00
|
|
|
SELECT 1;
|
|
|
|
1
|
|
|
|
1
|
2016-03-25 20:51:22 +04:00
|
|
|
connect con2,localhost,root,,;
|
2012-07-31 18:32:46 +02:00
|
|
|
SELECT 2;
|
|
|
|
2
|
|
|
|
2
|
|
|
|
ERROR HY000: Too many connections
|
2016-03-25 20:51:22 +04:00
|
|
|
connection default;
|
2012-07-31 18:32:46 +02:00
|
|
|
SELECT 0;
|
|
|
|
0
|
|
|
|
0
|
2016-02-01 12:45:39 +02:00
|
|
|
show status like "Threads_connected";
|
|
|
|
Variable_name Value
|
2018-04-10 17:43:18 +03:00
|
|
|
Threads_connected 11
|
2019-08-30 16:06:54 +03:00
|
|
|
SET GLOBAL log_warnings=@save_log_warnings;
|
|
|
|
SET GLOBAL max_connections=@save_max_connections;
|