{"id":373,"date":"2023-01-20T16:13:25","date_gmt":"2023-01-20T14:13:25","guid":{"rendered":"http:\/\/blog.georgebaciu.pro\/?p=373"},"modified":"2023-01-20T16:16:36","modified_gmt":"2023-01-20T14:16:36","slug":"how-to-turn-on-mysql-query-log","status":"publish","type":"post","link":"https:\/\/blog.georgebaciu.pro\/?p=373","title":{"rendered":"How to turn on MySQL query log"},"content":{"rendered":"\n<p>thanks to Blacksail, see <a href=\"https:\/\/blacksaildivision.com\/mysql-query-log\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/blacksaildivision.com\/mysql-query-log<\/a>.<\/p>\n\n\n\n<p>\u00cen mai toate cazurile, vrei s\u0103 activezi DB Query Log c\u00eend ai o problem\u0103 pe care nu \u0219ti de unde s-o apuci, dup\u0103 ce ai epuizat debuging-ul pe surse. <\/p>\n\n\n\n<p>NU \u021bine acest log activ, pune-l On, do the stuff \u0219i apoi dezactiveaz\u0103-l! Va consuma resurse aiurea \u0219i dai \u00een altele c\u0103rora le vei g\u0103si cauza \u00een 1014 ani. <\/p>\n\n\n\n<p>Fiind doar temporar, e de preferat s\u0103 nu interac\u021bion\u0103m cu fi\u0219iere sau s\u0103 restart\u0103m servicii. Iat\u0103 comenzile magice: <\/p>\n\n\n\n<p><code>SET GLOBAL log_output = 'TABLE';<br>SET GLOBAL general_log = 'ON';<\/code><\/p>\n\n\n\n<p>Apoi, d\u0103-i, tat\u0103, c\u0103ut\u0103ri pe mysql.general_log p\u00een\u0103 g\u0103se\u0219ti problema ce te fr\u0103m\u00eent\u0103!<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>thanks to Blacksail, see https:\/\/blacksaildivision.com\/mysql-query-log. \u00cen mai toate cazurile, vrei s\u0103 activezi DB Query Log c\u00eend ai o problem\u0103 pe care nu \u0219ti de unde s-o apuci, dup\u0103 ce ai epuizat debuging-ul pe surse. NU \u021bine acest log activ, pune-l On, do the stuff \u0219i apoi dezactiveaz\u0103-l! Va consuma resurse aiurea \u0219i dai \u00een altele [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,4,5],"tags":[22],"_links":{"self":[{"href":"https:\/\/blog.georgebaciu.pro\/index.php?rest_route=\/wp\/v2\/posts\/373"}],"collection":[{"href":"https:\/\/blog.georgebaciu.pro\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.georgebaciu.pro\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.georgebaciu.pro\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.georgebaciu.pro\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=373"}],"version-history":[{"count":3,"href":"https:\/\/blog.georgebaciu.pro\/index.php?rest_route=\/wp\/v2\/posts\/373\/revisions"}],"predecessor-version":[{"id":376,"href":"https:\/\/blog.georgebaciu.pro\/index.php?rest_route=\/wp\/v2\/posts\/373\/revisions\/376"}],"wp:attachment":[{"href":"https:\/\/blog.georgebaciu.pro\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.georgebaciu.pro\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.georgebaciu.pro\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}