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:
1 |
show variables like "max_connections" ; |
1 |
mysql -e 'show variables;' | grep max_connections |
View the current connections with:
1 |
SHOW STATUS WHERE `variable_name` = 'Threads_connected' ; |
1 |
show status like 'Con%' |
1 |
SET GLOBAL max_connections = 200; |
[mysqld]
1 |
set -variable=max_connections=200 |