免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1748 | 回复: 4
打印 上一主题 下一主题

请问mysql5.0的com_状态 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-19 21:44 |只看该作者 |倒序浏览
请问各位.
我使用show status时

网络上的资料显示的是com_*  是累计的执行次数,如:

Com_select
Com_insert
Com_update
Com_delete


为什么我的全是0呢

使用mysqlreport却可以检测出值

对perl 不懂.

想请问下,还有什么方法可以取得这些累计数的值呢.

谢谢

论坛徽章:
1
白银圣斗士
日期:2015-11-23 08:33:04
2 [报告]
发表于 2009-03-20 08:53 |只看该作者
原帖由 loniy 于 2009-3-19 21:44 发表
请问各位.
我使用show status时

网络上的资料显示的是com_*  是累计的执行次数,如:

Com_select
Com_insert
Com_update
Com_delete


为什么我的全是0呢

使用mysqlreport却可以检测出值

对pe ...

mysql> show GLOBAL status like '%Com_sel%';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| Com_select    | 53    |
+---------------+-------+
1 row in set (0.00 sec)

mysql> show  status like '%Com_sel%';      
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| Com_select    | 1     |
+---------------+-------+
1 row in set (0.00 sec)

mysql>


看看是不是这两者的区别。

论坛徽章:
0
3 [报告]
发表于 2009-03-20 09:20 |只看该作者
版主,我爱你....

果然是这样的啊.谢谢.

"The GLOBAL and SESSION options are new in MySQL 5.0.2. With the GLOBAL modifier, SHOW STATUS displays the status values for all connections to MySQL. With SESSION, it displays the status values for the current connection. If no modifier is present, the default is SESSION. LOCAL is a synonym for SESSION. "

论坛徽章:
0
4 [报告]
发表于 2009-03-23 10:11 |只看该作者
牛B

论坛徽章:
0
5 [报告]
发表于 2009-03-25 16:37 |只看该作者
版主,我爱你....

果然是这样的啊.谢谢.

"The GLOBAL and SESSION options are new in MySQL 5.0.2. With the GLOBAL modifier, SHOW STATUS displays the status values for all connections to MySQL. With SESSION, it displays the status values for the current connection. If no modifier is present, the default is SESSION. LOCAL is a synonym for SESSION. "


更牛B!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP