Comments on: INFORMATION_SCHEMA.GLOBAL_STATUS: watch out https://shlomi-noach.github.io/blog/mysql/information_schema-global_status-watch-out Blog by Shlomi Noach Sat, 17 Oct 2009 04:33:30 +0000 hourly 1 https://wordpress.org/?v=5.3.3 By: shlomi https://shlomi-noach.github.io/blog/mysql/information_schema-global_status-watch-out/comment-page-1#comment-4954 Sat, 17 Oct 2009 04:33:30 +0000 https://shlomi-noach.github.io/blog/?p=1194#comment-4954 Sheeri,

Whoa, I was in the midst of developing a similar tool. I was unaware of mysar!
Thanks,
Shlomi

]]>
By: Sheeri https://shlomi-noach.github.io/blog/mysql/information_schema-global_status-watch-out/comment-page-1#comment-4947 Fri, 16 Oct 2009 22:29:31 +0000 https://shlomi-noach.github.io/blog/?p=1194#comment-4947 Shlomi — you can use this information to create a MySQL Event that will get lots of information.

Or use the mysar tool to do something similar. (https://launchpad.net/mysar
and
http://www.pythian.com/news/4230/mysar-a-sar-like-utility-for-mysql )

]]>
By: shlomi https://shlomi-noach.github.io/blog/mysql/information_schema-global_status-watch-out/comment-page-1#comment-4918 Fri, 16 Oct 2009 04:41:11 +0000 https://shlomi-noach.github.io/blog/?p=1194#comment-4918 @Gavin,

Heh, on first reading your comment I thought to myself I should delete this post altogether. But I then realized the flaw is with the examples I provided, which were misleading.

Using “IN” is just fine, but does not differ from reading the entire table. The problem is with iterating the table.

Look at Roland’s comment: he got my meaning: I wish to provide with properly named columns+values, not with VARIABLE_NAME, VARIABLE_VALUE.

So the flaw is that I did not provide the kind of result I really was expecting, hence the confusion. I apologize for not being clear.

Regards

]]>
By: Gavin Towey https://shlomi-noach.github.io/blog/mysql/information_schema-global_status-watch-out/comment-page-1#comment-4913 Fri, 16 Oct 2009 01:26:14 +0000 https://shlomi-noach.github.io/blog/?p=1194#comment-4913 what’s wrong with IN ?

SELECT * FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME IN (‘innodb_os_log_written’, ‘questions’);

]]>
By: shlomi https://shlomi-noach.github.io/blog/mysql/information_schema-global_status-watch-out/comment-page-1#comment-4891 Thu, 15 Oct 2009 04:32:21 +0000 https://shlomi-noach.github.io/blog/?p=1194#comment-4891 Ronald,

Great!
Thanks

]]>
By: Roland Bouman https://shlomi-noach.github.io/blog/mysql/information_schema-global_status-watch-out/comment-page-1#comment-4886 Wed, 14 Oct 2009 23:28:10 +0000 https://shlomi-noach.github.io/blog/?p=1194#comment-4886 Hi Shlomi,

there is an easy way around it without the memory table. Just use something like

select MAX(IF(variable_name = ‘INNODB_OS_LOG_WRITTEN’, VARIABLE_VALUE, NULL)) AS INNODB_OS_LOG_WRITTEN
, MAX(IF(variable_name = ‘QUESTIONS’, VARIABLE_VALUE, NULL)) AS QUESTIONS
from information_schema.GLOBAL_STATUS

]]>