MySQL modify the maximum number of connections and connection waiting time

//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;

Guess you like

Origin blog.csdn.net/C_jian/article/details/106058583