{"id":727,"date":"2024-02-12T16:20:22","date_gmt":"2024-02-12T08:20:22","guid":{"rendered":"https:\/\/play.datalude.com\/blog\/?p=727"},"modified":"2024-02-12T16:20:25","modified_gmt":"2024-02-12T08:20:25","slug":"nice-formatting-for-mysql-show-variables-show-status","status":"publish","type":"post","link":"https:\/\/play.datalude.com\/blog\/2024\/02\/nice-formatting-for-mysql-show-variables-show-status\/","title":{"rendered":"Nice formatting for mysql show variables \/ show status"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Have you ever tried to get a variable out of mysql and your screen fills with dots and dashes from mysql's output? Turns out its pretty simple to get rid of with awk. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Arrgh!<br>mysql -e \"show variables\" | grep innodb<br><br># Much better<br>mysql -e \"show variables\" | awk '{print $1 \" = \" $2}' | grep innodb<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That's all. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever tried to get a variable out of mysql and your screen fills with dots and dashes from mysql's output? Turns out its pretty simple to get rid of with awk. That's all.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1],"tags":[139,134],"class_list":["post-727","post","type-post","status-publish","format-standard","hentry","category-it","tag-bash","tag-linux"],"_links":{"self":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/posts\/727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/comments?post=727"}],"version-history":[{"count":0,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/posts\/727\/revisions"}],"wp:attachment":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/media?parent=727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/categories?post=727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/tags?post=727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}