//Query the maximum number of connections
select VARIABLE_VALUE from information_schema.GLOBAL_VARIABLES where VARIABLE_NAME='MAX_CONNECTIONS';
//Set the maximum number of connections
set global max_connections = 3600;
//Query connection waiting time
show global variables like 'wait_timeout';
//Set the connection waiting time
set global wait_timeout=30;
//Query the current number of connections
SHOW PROCESSLIST;