Global Maximum Connections: The total number of all connections to the database engine
查看:mysql->
show variables like '%max_connections%'
\g
Settings: mysql->set global
max_connections=xxx \g -- (only for the current process, reset after the service is restarted)
Maximum number of connections for users: the maximum number of connections for a single client
Maximum number of connections for users: the maximum number of connections for a single client
View: mysql->
show variables like '%max_user_connections%'
\g
Settings: mysql->set global max_ user_ connections=xxx \g -- (only for the current process, reset after the service is restarted)
Refresh: flush privileges
Settings: mysql->set global max_ user_ connections=xxx \g -- (only for the current process, reset after the service is restarted)
Refresh: flush privileges
The above settings are only valid for the current process, and will be reset after the Mysql service is restarted.
Modify my.ini and add
max_connections = xxx and max_user_connections = xxx in the
[mysqld] section to
make it persistent