mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
20 lines
364 B
Text
20 lines
364 B
Text
SET GLOBAL log_warnings=4;
|
|
SET GLOBAL max_connections=2;
|
|
connect con1,localhost,root,,;
|
|
SELECT 1;
|
|
1
|
|
1
|
|
connect con2,localhost,root,,;
|
|
SELECT 2;
|
|
2
|
|
2
|
|
ERROR HY000: Too many connections
|
|
connection default;
|
|
SELECT 0;
|
|
0
|
|
0
|
|
show status like "Threads_connected";
|
|
Variable_name Value
|
|
Threads_connected 3
|
|
SET GLOBAL log_warnings=default;
|
|
SET GLOBAL max_connections=default;
|