查看: 1455|回复: 3
|
mysql 怎样flush global variable?
[复制链接]
|
|
在mysql 5.0 要怎样reset global variables?
flush status 只能reset thread variables |
|
|
|
|
|
|
|
发表于 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 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|