佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1456|回复: 3

mysql 怎样flush global variable?

[复制链接]
发表于 19-2-2008 03:49 PM | 显示全部楼层 |阅读模式
在mysql 5.0 要怎样reset global variables?
flush status 只能reset thread variables
回复

使用道具 举报


ADVERTISEMENT

发表于 19-2-2008 04:09 PM | 显示全部楼层

回复 1# tanhy 的帖子

are you try to say something like this ?

mysql>set @@wait_timeout=29000;

after it set, you can check
mysql> show variables like 'wait%';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| wait_timeout  | 29000 |
+---------------+-------+

it will change immediately, but when you restart the mysql server, the figure reset to older figure.
回复

使用道具 举报

 楼主| 发表于 19-2-2008 11:21 PM | 显示全部楼层
我需要reset 的是status variable
我正做performance tuning, 要知道set 了一些server setting后有什么effect
比如说
show status;
会show 我们一些server的status variable,比如有多少read request hits physical page
我需要reset 这些status variables
回复

使用道具 举报

 楼主| 发表于 20-2-2008 08:29 PM | 显示全部楼层
找到了, flush status
不过要restart service 才能看到effect
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT


本周最热论坛帖子本周最热论坛帖子

ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 29-9-2025 02:43 PM , Processed in 0.106316 second(s), 30 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表