mysql view the current number of connections, the maximum number of connections, and modify the maximum number of connections

If it is the root account, you can see the current connections of all users. If it is another ordinary account, you can only see the connections occupied by yourself. show processlist; only list the first 100, if you want to list all, please use show full processlist; MySQL > show processlist; 
 

 

1. View the maximum number of connections
show variables like '%max_connections%';
2. Modify the maximum number of connections
set GLOBAL max_connections = 200;

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326213185&siteId=291194637