{"id":1238,"date":"2020-10-16T10:53:26","date_gmt":"2020-10-16T01:53:26","guid":{"rendered":"http:\/\/www.toyzon.com\/?p=1238"},"modified":"2020-10-16T10:53:27","modified_gmt":"2020-10-16T01:53:27","slug":"mysql-query-log-%eb%82%a8%ea%b8%b0%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/www.toyzon.com\/?p=1238","title":{"rendered":"MySQL Query Log \ub0a8\uae30\uae30"},"content":{"rendered":"\n<p>\ub77c\uc774\ube0c \uc911\uc5d0 MySQL Query Log \ub0a8\uae30\uae30<\/p>\n<p><em>(MySQL\uc744 \uc0ac\uc6a9\ud558\uba74\uc11c \uc790\uc8fc \uc0ac\uc6a9\ud558\uc9c0\ub9cc \uae30\uc5b5\ud558\uae30 \ud798\ub4e4\uc5b4\uc11c \ub0a8\uaca8 \ub193\uc74c.)<\/em><\/p>\n<p>1. general_log \uc0c1\ud0dc \ud655\uc778<\/p>\n<table style=\"width: 100%; border-collapse: collapse; background-color: #000000;\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\"><span style=\"color: #ffffff;\">mysql&gt; show variables like &#8216;general%&#8217;;<\/span><br \/><span style=\"color: #ffffff;\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<\/span><br \/><span style=\"color: #ffffff;\">| Variable_name\u00a0 \u00a0| Value\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 |<\/span><br \/><span style=\"color: #ffffff;\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<\/span><br \/><span style=\"color: #ffffff;\">| general_log\u00a0 \u00a0 \u00a0 \u00a0 | OFF\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 |<\/span><br \/><span style=\"color: #ffffff;\">| general_log_file | \/var\/lib\/mysql\/query.log\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0|<\/span><br \/><span style=\"color: #ffffff;\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u00a0<\/p>\n<p>2. general_log \uc124\uc815 \ubcc0\uacbd<\/p>\n<table style=\"width: 100%; border-collapse: collapse; background-color: #000000;\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\"><span style=\"color: #ffffff;\">mysql&gt; set global general_log = &#8216;on&#8217;;<\/span><br \/><span style=\"color: #ffffff;\">Query OK, 0 rows affected (0.00 sec)<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u00a0<\/p>\n<p>3. general_log \ubcc0\uacbd \uc0c1\ud0dc \ud655\uc778<\/p>\n<table style=\"width: 100%; border-collapse: collapse; background-color: #000000;\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\"><span style=\"color: #ffffff;\">mysql&gt; show variables like &#8216;general%&#8217;;<\/span><br \/><span style=\"color: #ffffff;\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<\/span><br \/><span style=\"color: #ffffff;\">| Variable_name\u00a0 \u00a0| Value\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0|<\/span><br \/><span style=\"color: #ffffff;\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<\/span><br \/><span style=\"color: #ffffff;\">| general_log\u00a0 \u00a0 \u00a0 \u00a0 | ON\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0|<\/span><br \/><span style=\"color: #ffffff;\">| general_log_file | \/var\/lib\/mysql\/NXT-NAMS-LINUX.log |<\/span><br \/><span style=\"color: #ffffff;\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u00a0<\/p>\n <!-- AdSense Now! Lite: WP is not in the loop.  -->\n","protected":false},"excerpt":{"rendered":"<p>\ub77c\uc774\ube0c \uc911\uc5d0 MySQL Query Log \ub0a8\uae30\uae30 (MySQL\uc744 \uc0ac\uc6a9\ud558\uba74\uc11c \uc790\uc8fc \uc0ac\uc6a9\ud558\uc9c0\ub9cc \uae30\uc5b5\ud558\uae30 \ud798\ub4e4\uc5b4\uc11c \ub0a8\uaca8 \ub193\uc74c.) 1. general_log \uc0c1\ud0dc \ud655\uc778 mysql&gt; show variables like &#8216;general%&#8217;;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+| Variable_name\u00a0 \u00a0| Value\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 |+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+| general_log\u00a0 \u00a0 \u00a0 \u00a0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"MySQL Query Log \ub0a8\uae30\uae30 - ToyZon","description":""},"footnotes":""},"categories":[244],"tags":[63,579],"class_list":["post-1238","post","type-post","status-publish","format-standard","hentry","category-mysql-","tag-mysql","tag-query-log"],"_links":{"self":[{"href":"https:\/\/www.toyzon.com\/index.php?rest_route=\/wp\/v2\/posts\/1238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.toyzon.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.toyzon.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.toyzon.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.toyzon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1238"}],"version-history":[{"count":1,"href":"https:\/\/www.toyzon.com\/index.php?rest_route=\/wp\/v2\/posts\/1238\/revisions"}],"predecessor-version":[{"id":1239,"href":"https:\/\/www.toyzon.com\/index.php?rest_route=\/wp\/v2\/posts\/1238\/revisions\/1239"}],"wp:attachment":[{"href":"https:\/\/www.toyzon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.toyzon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.toyzon.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}