mysql_connections
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mysql_connections [2016/02/01 08:09] – luke7858 | mysql_connections [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=== mysql/ | === mysql/ | ||
- | Log into mysql and vie the current connections with: | + | ^ 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: | ||
+ | <sxh bash> | ||
+ | show variables like " | ||
+ | </ | ||
+ | From command line: | ||
+ | <sxh bash> | ||
+ | mysql -e 'show variables;' | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | View the current connections with: | ||
<sxh bash> | <sxh bash> | ||
SHOW STATUS WHERE `variable_name` = ' | SHOW STATUS WHERE `variable_name` = ' | ||
+ | </ | ||
+ | \\ | ||
+ | \\ | ||
+ | **Note**: | ||
+ | The following command does NOT show current connections, | ||
+ | \\ | ||
+ | http:// | ||
+ | <sxh bash> | ||
+ | show status like ' | ||
</ | </ | ||
\\ | \\ |
mysql_connections.1454314165.txt.gz · Last modified: 2024/05/23 07:26 (external edit)