Php mysql_stat中的条目是什么意思?

Php mysql_stat中的条目是什么意思?,php,mysql,statistics,Php,Mysql,Statistics,我在PHP中调用了函数mysql\u stat(),结果如下: 正常运行时间:7733455 线程:1 问题:2218231 慢速查询:1552 开放时间:14989 冲水表:1 开放表格:6 平均每秒查询数:0.287 我在6天前创建了数据库,但正常运行时间表明,这是近90天前的事(或者这是服务器的最后一次重启?) 查询速度慢的阈值是多少 我可以检查一下,哪些查询速度慢 如果我的数据库中只有3个表,opentables怎么可能是6 条目线程,打开和刷新表的含义是什么 是否可以重置统计信息?

我在PHP中调用了函数
mysql\u stat()
,结果如下:

  • 正常运行时间:7733455
  • 线程:1
  • 问题:2218231
  • 慢速查询:1552
  • 开放时间:14989
  • 冲水表:1
  • 开放表格:6
  • 平均每秒查询数:0.287
我在6天前创建了数据库,但正常运行时间表明,这是近90天前的事(或者这是服务器的最后一次重启?)

查询速度慢的阈值是多少

我可以检查一下,哪些查询速度慢

如果我的数据库中只有3个表,
opentables
怎么可能是6

条目
线程
打开
刷新表
的含义是什么

是否可以重置统计信息?

由于使用了
mysql
扩展,因此不鼓励使用。改用mysqli

字段的含义:

   o   Uptime

       The number of seconds the MySQL server has been running.

   o   Threads

       The number of active threads (clients).

   o   Questions

       The number of questions (queries) from clients since the server was
       started.

   o   Slow queries

       The number of queries that have taken more than long_query_time
       seconds. (MySQL DOSC "The Slow Query Log" section).

   o   Opens

       The number of tables the server has opened.

   o   Flush tables

       The number of flush-*, refresh, and reload commands the server has
       executed.

   o   Open tables

       The number of tables that currently are open.

   o   Memory in use

       The amount of memory allocated directly by mysqld. This value is
       displayed only when MySQL has been compiled with safemalloc, which
       is available only before MySQL 5.5.6.

   o   Maximum memory used

       The maximum amount of memory allocated directly by mysqld. This
       value is displayed only when MySQL has been compiled with
       safemalloc, which is available only before MySQL 5.5.6.

要重置此值,请在mysql服务器终端中使用mysqladmin flush host。

如果您的站点托管在共享主机中,则该信息可能来自多个数据库,而不仅仅是您的数据库:)

但“服务器已打开的表数”是多少?