Variable Name | Definition |
---|---|
Threads_connected | The number of currently open connections. |
Connections | The number of connection attempts (successful or not) to the MySQL server |
Viewing configured connections:
show variables like "max_connections";From command line:
mysql -e 'show variables;' | grep max_connections
View the current connections with:
SHOW STATUS WHERE `variable_name` = 'Threads_connected';
show status like 'Con%'
SET GLOBAL max_connections = 200;
[mysqld]
set-variable=max_connections=200