我寫一個類來檢查一些統計數據,我不知道是什麼意思的條款,如果他們是壞的MYSQL統計
$array = explode(" ", mysql_stat()); foreach ($array as $value){ echo $value . "<br />"; }
輸出:
Uptime: 4520
Threads: 3
Questions: 295957
Slow queries: 0
Opens: 905
Flush tables: 1
Open tables: 32
Queries per second avg: 65.477
是有問題 ?
PS:找到未關閉的mysql連接的任何方法?
謝謝!
以及如何找出Threads_connected? – 2011-05-25 20:11:17
用mySQL [SHOW STATUS](http://dev.mysql.com/doc/refman/5.1/en/show-status.html)查詢。 – Problematic 2011-05-25 20:12:29
謝謝! :P .... – 2011-05-25 20:19:45