I called the function mysql_stat() in PHP, which gave me the following result:
- Uptime: 7733455
- Threads: 1
- Questions: 2218231
- Slow queries: 1552
- Opens: 14989
- Flush tables: 1
- Open tables: 6
- Queries per second avg: 0.287
I created the database 6 days ago, but the uptime suggests, that it was nearly 90 days ago (or is this the last restart of the server?)
What is the threshold for a query beeing slow query?
Can I somehow check, which queries where slow?
How can open Tables be 6, if I only have 3 Tables in my database?
What is the meaning of the entries Threads, Opens and Flush tables?
Is it possible to reset the statistics?
Due to PHP DOCS use of
mysqlextension is discouraged. Usemysqliinstead.Meanings of fields:
To reset this values use
#> mysqladmin flush-hostin your mysql server terminal.