我运行这个命令:
mysql> show status like '%onn%';
+--------------------------+-------+
| Variable_name | Value |
+--------------------------+-------+
| Aborted_connects | 0 |
| Connections | 37226 |
| Max_used_connections | 45 |
| Ssl_client_connects | 0 |
| Ssl_connect_renegotiates | 0 |
| Ssl_finished_connects | 0 |
| Threads_connected | 4 |
+--------------------------+-------+
Run Code Online (Sandbox Code Playgroud)
我知道我的网站流量不高,因此连接数让我感到困惑。我确信当我使用 PHP 时我会关闭所有连接。
连接数持续增长还有其他原因吗?