{"id":489,"date":"2019-09-04T10:04:19","date_gmt":"2019-09-04T09:04:19","guid":{"rendered":"http:\/\/blog.chen-hongyi.com\/?p=489"},"modified":"2019-09-04T10:04:19","modified_gmt":"2019-09-04T09:04:19","slug":"zf1%e7%9a%84db%e8%af%ad%e6%b3%95%e6%96%87%e6%a1%a3%e5%92%8c%e6%9f%a5%e8%af%a2%e5%ae%9e%e9%99%85%e7%9a%84query","status":"publish","type":"post","link":"https:\/\/chen-hongyi.com\/?p=489","title":{"rendered":"ZF1\u7684DB\u8bed\u6cd5\u6587\u6863\u548c\u67e5\u8be2\u5b9e\u9645\u7684query"},"content":{"rendered":"\n<p>\u662f\u7684\uff0c\u6211\u8fd8\u5728\u7528zF1,\u800c\u4e14\u8fd8\u9700\u8981\u67e5\u6587\u6863\uff0e\u8fd9\u662fZF1\u7684\u6570\u636e\u5e93\u76f8\u5173\u7684\u6587\u6863\uff0c\u6bcf\u6b21\u5199\u90fd\u8981\u770b\uff0e<\/p>\n\n\n\n<p><a href=\"https:\/\/framework.zend.com\/manual\/1.12\/en\/zend.db.select.html\">https:\/\/framework.zend.com\/manual\/1.12\/en\/zend.db.select.html<\/a><\/p>\n\n\n\n<p>\u53e6\u5916\uff0c\u6211\u8fd8\u9700\u8981\u67e5\u770b\u6570\u636e\u5e93\u5230\u5e95\u6267\u884c\u4e86\u54ea\u4e9b\u67e5\u8be2\uff0c\u9700\u8981\u6253\u5f00log<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><code>Execute SET GLOBAL log_output = 'TABLE';<\/code><\/li><li><code>Execute SET GLOBAL general_log = 'ON';<\/code><\/li><li><code>Take a look at the table mysql.general_log<\/code><\/li><\/ol>\n\n\n\n<p>\u6765\u6e90\uff1a<a href=\"https:\/\/stackoverflow.com\/questions\/650238\/how-to-show-the-last-queries-executed-on-mysql\">https:\/\/stackoverflow.com\/questions\/650238\/how-to-show-the-last-queries-executed-on-mysql\u3000<\/a><\/p>\n\n\n\n<p>\u4f46\u662f\u5728heidi\u91cc\u770b\u5230\u7684argument\u8fd8\u662fhex\uff0c\u8fd8\u8981\u7528\u4e2a\u5f00\u5173\u6765\u8f6c\u4e3atxt.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.heidisql.com\/forum.php?t=24486\">https:\/\/www.heidisql.com\/forum.php?t=24486<\/a><\/p>\n\n\n\n<p>\u8fd9\u6837\u7ec8\u4e8e\u770b\u5230\u5b9e\u9645\u6267\u884c\u7684sql\u4e86\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u662f\u7684\uff0c\u6211\u8fd8\u5728\u7528zF1,\u800c\u4e14\u8fd8\u9700\u8981\u67e5\u6587\u6863\uff0e\u8fd9\u662fZF1\u7684\u6570\u636e\u5e93\u76f8\u5173\u7684\u6587\u6863\uff0c\u6bcf\u6b21\u5199\u90fd\u8981 &hellip; <a href=\"https:\/\/chen-hongyi.com\/?p=489\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-489","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/posts\/489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=489"}],"version-history":[{"count":1,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/posts\/489\/revisions"}],"predecessor-version":[{"id":490,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/posts\/489\/revisions\/490"}],"wp:attachment":[{"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}