{"id":34896,"date":"2020-02-21T11:34:23","date_gmt":"2020-02-21T03:34:23","guid":{"rendered":"http:\/\/4563.org\/?p=34896"},"modified":"2020-02-21T11:34:23","modified_gmt":"2020-02-21T03:34:23","slug":"mysql-%e6%95%b0%e6%8d%ae%e6%89%b9%e9%87%8f%e6%9b%bf%e6%8d%a2%ef%bc%8c%e6%b1%82%e6%80%9d%e8%b7%af%e5%8f%8a%e5%8a%9e%e6%b3%95%ef%bc%8c%e7%8e%b0%e5%9c%a8%e5%a4%aa%e5%8e%9f%e5%a7%8b%e4%ba%86","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=34896","title":{"rendered":"mysql \u6570\u636e\u6279\u91cf\u66ff\u6362\uff0c\u6c42\u601d\u8def\u53ca\u529e\u6cd5\uff0c\u73b0\u5728\u592a\u539f\u59cb\u4e86"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>lqtest<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>mysql \u6570\u636e\u6279\u91cf\u66ff\u6362\uff0c\u6c42\u601d\u8def\u53ca\u529e\u6cd5\uff0c\u73b0\u5728\u592a\u539f\u59cb\u4e86<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 lqtest \u4e8e 2020-2-21 11:20 \u7f16\u8f91 <\/p>\n<p>  \u6570\u636e\u5e93\u91cc\u9762\u6709100\u5f20\u8868\u6bcf\u5f20\u8868\u91cc \u90fd\u6709\u9700\u8981\u66ff\u6362\u7684\u6570\u636eA&nbsp; &nbsp;\u66ff\u6362\u6210B&nbsp; &nbsp;\u6570\u503c\u90fd\u662f\u56fa\u5b9a\u7684\u3002<br \/>  \u73b0\u5728\u7684 \u529e\u6cd5\u662f&nbsp; &nbsp;\u67e5\u8be2\u91cc\u9762 \u6267\u884c<br \/>  UPDATE `\u88681` SET \u5b57\u6bb5=replace(\u5b57\u6bb5,&#8217;\u539f\u6570\u503cA&#8217;,&#8217;\u66ff\u6362\u503cB&#8217;)<br \/>  UPDATE `\u88682` SET \u5b57\u6bb5=replace(\u5b57\u6bb5,&#8217;\u539f\u6570\u503cA&#8217;,&#8217;\u66ff\u6362\u503cB&#8217;)<br \/>  \u3002<br \/>  \u3002<br \/>  \u3002<br \/>  UPDATE `\u8868100` SET \u5b57\u6bb5=replace(\u5b57\u6bb5,&#8217;\u539f\u6570\u503cA&#8217;,&#8217;\u66ff\u6362\u503cB&#8217;)<br \/>   100\u5f20\u8868\u6267\u884c100\u6b21&nbsp; &nbsp;\u6709\u6ca1\u6709\u5927\u4f6c\u6307\u70b9\u4e0b\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Tcp80<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u82b1\u751f\u74dc\u5b50\u5de7\u514b\u529b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>lqtest<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tTcp80 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-2-21 11:17<br \/>  \u82b1\u751f\u74dc\u5b50\u5de7\u514b\u529b<\/p>\n<p> &#8230;&#8230;&#8230;&#8230;..\u7ed9\u70b9\u601d\u8def\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5fd8\u6c5f\u6e56<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8981\u4e48sql\u5199\u4e2a\u5faa\u73af\u7684\u5b58\u50a8\u8fc7\u7a0b\u3002\u8981\u4e48\u5c31\u7528php\u554a\u4ec0\u4e48\u7684\u4e4b\u7c7b\u7684\u8bed\u8a00\uff0c\u5199\u4e2a\u5faa\u73af\u6267\u884cUPDATE\u4e00\u6837\u5373\u53ef\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>cnly1987<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5982\u679c\u4f60\u4e0d\u89c9\u5f97\u86cb\u75bc\u7684\u5427\uff0c\u7528SHELL\u6216\u8005PYTHON\u6765\u505a\u3002<br \/>  \u94fe\u63a5\u6570\u636e\u5e93\u3002 \u628a\u8981\u6539\u7684\u8868\u505a\u4e00\u4e2a\u6570\u7ec4\u3002<br \/>  \u904d\u5386\u8868\u6267\u884cupdate\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>lqtest<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tcnly1987 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-2-21 11:21<br \/>  \u5982\u679c\u4f60\u4e0d\u89c9\u5f97\u86cb\u75bc\u7684\u5427\uff0c\u7528SHELL\u6216\u8005PYTHON\u6765\u505a\u3002<br \/>  \u94fe\u63a5\u6570\u636e\u5e93\u3002 \u628a\u8981\u6539\u7684\u8868\u505a\u4e00\u4e2a\u6570\u7ec4\u3002<br \/>  \u904d\u5386\u8868\u6267\u884cupdate &#8230;<\/p>\n<p> \u6c42shell&nbsp; &nbsp;\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hellowz<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5bfc\u51fa\u6570\u636e\u5e93\uff0c\u7136\u540evim\u547d\u4ee4:%s\/str1\/str2\/g \u7136\u540e\u5bfc\u5165\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>aRNoLD<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t7\u697c\u7684\u529e\u6cd5\u6bd4\u8f83\u597d\uff0c\u5bfc\u51fasql\u540e\u76f4\u63a5\u6539\uff0cemeditor\u3001sublime\u90fd\u53ef\u751a\u81f3\u5199\u5b57\u677f\u90fd\u53ef\u4ee5\u505a\uff0c\u6539\u5b8c\u540e\u518d\u5bfc\u5165\u56de\u53bb\u5c31\u884c\u4e86\u3002<\/p>\n<p>  \u6216\u8005\u5728shell\u4e0b\u9762\u7ed9mysql\u547d\u4ee4\u52a0\u4e2a-e\uff0c\u4f8b\u5982\u4e0b\u9762\u8fd9\u6837\u7684<br \/>  mysql -uUSER &#8211;password=&#8217;PASSWORD&#8217; -e &quot;mysql\u547d\u4ee4;&quot;<br \/>  \u628a\u8fd9\u4e2a\u547d\u4ee4\u7ed9\u5faa\u73af\u4e00\u4e0b\uff0c100\u6761\u4e0d\u4f1a\u5f88\u96be\u3002<\/p>\n<p>  \u4e0d\u8fc7\u76f4\u63a5\u7684\u67e5\u8be2\u4ee3\u6362\u597d\u8c61\u4e5f\u6ca1\u4ec0\u4e48\u95ee\u9898\u5427\uff0cmysql\u7684update\u5e94\u5f53\u662f\u53ef\u4ee5\u8dd1\u7684\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6797\u54c8\u54c8<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5982\u679c\u6570\u636e\u91cf\u4e0d\u5927\u7684\u8bdd\u4e03\u697c\u65b9\u6cd5\u597d\uff0c\u6ce8\u610f\u5907\u4efd\u3002\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>lqtest \u5927\u4f6c\u6709\u8bdd\u8bf4 : my&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\/34896"}],"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=34896"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/34896\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=34896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=34896"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=34896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}