{"id":187164,"date":"2020-10-30T11:38:04","date_gmt":"2020-10-30T03:38:04","guid":{"rendered":"http:\/\/4563.org\/?p=187164"},"modified":"2020-10-30T11:38:04","modified_gmt":"2020-10-30T03:38:04","slug":"mariadb-%e6%95%b0%e6%8d%ae%e5%ba%93%e4%ba%8b%e5%8a%a1%e6%8f%90%e4%ba%a4%e5%90%8e%ef%bc%8c%e5%8f%91%e7%8e%b0%e5%a5%bd%e5%a4%9a%e6%95%b0%e6%8d%ae%e4%b8%8d%e8%a7%81%e4%ba%86","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=187164","title":{"rendered":"MariaDB \u6570\u636e\u5e93\u4e8b\u52a1\u63d0\u4ea4\u540e\uff0c\u53d1\u73b0\u597d\u591a\u6570\u636e\u4e0d\u89c1\u4e86"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  MariaDB \u6570\u636e\u5e93\u4e8b\u52a1\u63d0\u4ea4\u540e\uff0c\u53d1\u73b0\u597d\u591a\u6570\u636e\u4e0d\u89c1\u4e86               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : s609926202 <\/span>  <span><i><\/i> 4<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u5199\u4e86\u4e00\u4e2a\u4e8b\u52a1\uff0c\u8981\u4fdd\u8bc1\u4e00\u81f4\u6027\uff0c\u8981\u4e48\u90fd\u6210\u529f\uff0c\u8981\u4e48\u90fd\u56de\u6eda\u3002 <br \/>\u4f46\u662f\u53d1\u73b0\u5728\u63d0\u4ea4\u4e8b\u52a1\u540e\uff0c\u4e00\u5f20\u8868\u4e2d\u7684\u597d\u591a\u6570\u636e\u90fd\u6d88\u5931\u4e86\uff0c\u6bd4\u5982 t_user \u8868\uff0c\u63d0\u4ea4\u4e8b\u52a1\u524d\u6709 300 \u6761\u8bb0\u5f55\uff0c\u63d0\u4ea4\u540e\u53d8\u6210 200 \u6761\uff0c\u4f46\u5b9e\u9645\u4e0a\u4e8b\u52a1\u4e2d\u5e76\u6ca1\u6709\u5220\u9664\u6389\u8fd9\u4e9b\u6570\u636e\u3002 <\/p>\n<p>\u4e8b\u52a1\u5927\u81f4\u5185\u5bb9\uff08 TP \u6846\u67b6\uff09\uff1a<br \/>&#8220;`<br \/>$db = M();<br \/>$db-&gt;startTrans();<\/p>\n<p>&#8230;\u4e00\u4e9b\u5220\u9664\u3001\u67e5\u8be2\u3001\u65b0\u589e\u3001\u66f4\u65b0\u8bed\u53e5&#8230;<\/p>\n<p>$db-&gt;commit();<br \/>return true;<br \/>&#8220;`<\/p>\n<p>\u4e8b\u52a1\u4e2d\u5305\u542b\u4e86\u5bf9\u540c\u4e00\u4e2a\u8868\u8bb0\u5f55\u7684\u5220\u9664\u3001\u67e5\u8be2\u3001\u65b0\u589e\u64cd\u4f5c\uff0c\u5f53\u6211\u79fb\u9664\u4e8b\u52a1\u65f6\uff0c\u4e00\u5207\u6b63\u5e38\uff0c\u6ca1\u6709\u51fa\u73b0\u4e22\u5931\u6570\u636e\u7684\u60c5\u51b5\u3002\u6240\u4ee5\u521d\u6b65\u6000\u7591\u662f\u4e8b\u52a1\u9020\u6210\u4e86\u6570\u636e\u7684\u6d88\u5931\u3002 <\/p>\n<p>\u8bf7\u95ee\u6709\u4ec0\u4e48\u529e\u6cd5\u53ef\u4ee5\u5b9a\u4f4d\u5230\u95ee\u9898\u6240\u5728\u5417\uff1f      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>7<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4054378\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kidlj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u76f8\u6bd4\u6000\u7591 MySQL\uff0cTP \u6216\u8005 MySQL driver\uff0c\u66f4\u8981\u9996\u5148\u6000\u7591\u81ea\u5df1\u7684\u4ee3\u7801\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4054379\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : labulaka521 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5e7b\u89c9                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4054380\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wowo243 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u67e5\u4ee3\u7801\uff0c\u4ee3\u7801\u67e5\u4e0d\u51fa\u6765\u67e5 binlog                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4054381\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : s609926202 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @kidlj <br \/>@labulaka521 \u79fb\u9664\u4e8b\u52a1\u540e\uff0cbug \u4e0d\u590d\u73b0\uff1b\u6dfb\u52a0\u4e8b\u52a1\u540e\uff0cbug \u590d\u73b0\u3002\u3002\u66f4\u52a0\u786e\u8ba4\u4e86\u662f\u4e8b\u52a1\u7684\u5173\u7cfb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4054382\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : golden0125 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5e94\u8be5\u5224\u65ad$db-&gt;commit();\u7684\u8fd4\u56de \u800c\u4e0d\u662f\u76f4\u63a5\u76f4\u63a5\u8fd4\u56de true                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4054383\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : CyJaySong <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u76f4\u63a5\u5c31\u8fd4\u56de true, \u4f60\u786e\u5b9a commit \u6210\u529f\u4e86\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4054384\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zarte <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f88\u591a\u4eba\u7528\u7684\u7a0b\u5e8f\u9047\u5230\u95ee\u9898\u5148\u6392\u9664\u7a0b\u5e8f\u95ee\u9898\uff0c\u76f4\u63a5\u67e5\u4ee3\u7801\u627e\u95ee\u9898\u53ef\u4ee5\u7701\u5f88\u591a\u65f6\u95f4\uff0c\u8fd8\u4e0d\u4f1a\u88ab\u5632\u8bbd\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>MariaDB \u6570\u636e\u5e93\u4e8b\u52a1\u63d0\u4ea4\u540e\uff0c&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/187164"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=187164"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/187164\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=187164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=187164"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=187164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}