{"id":23888,"date":"2020-02-11T14:05:53","date_gmt":"2020-02-11T06:05:53","guid":{"rendered":"http:\/\/4563.org\/?p=23888"},"modified":"2020-02-11T14:05:53","modified_gmt":"2020-02-11T06:05:53","slug":"%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae%e5%b8%a6%e6%9c%89%e6%95%b0%e6%8d%ae%e5%ba%93%e7%9a%84%e6%ba%90%e7%a0%81","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=23888","title":{"rendered":"\u5982\u4f55\u5b89\u88c5\u914d\u7f6e\u5e26\u6709\u6570\u636e\u5e93\u7684\u6e90\u7801"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>zhaolianyue<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u5982\u4f55\u5b89\u88c5\u914d\u7f6e\u5e26\u6709\u6570\u636e\u5e93\u7684\u6e90\u7801<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 zhaolianyue \u4e8e 2020-2-11 14:53 \u7f16\u8f91 <\/p>\n<p> \u4e0b\u8f7d\u4e86\u4e00\u4e2a\u6e90\u7801\u5e26\u6709\u6570\u636e\u5e93\u6587\u4ef6\uff0c\u8fd0\u884c\u540e\u76f4\u63a5\u62a5\u9519\u662f\u4e0d\u662f\u8981\u914d\u7f6e\u4e0b\u6570\u636e\u5e93\u6587\u4ef6 \u8bf7\u5927\u4f6c\u6307\u70b9\u4e0b<br \/>  \ud83d\ude41<\/p>\n<p>  Access denied for user &#8216;jiexi_j1u_cn&#8217;@&#8217;localhost&#8217; (using password: YES)<\/p>\n<p>    \/**<br \/>  &nbsp; &nbsp;* \u8fde\u63a5\u6570\u636e\u5e93\u65b9\u6cd5<br \/>  &nbsp; &nbsp;* @access public<br \/>  &nbsp; &nbsp;*\/<br \/>  &nbsp; &nbsp; public function connect($config=&#8221;,$linkNum=0) {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;if ( !isset($this-&gt;linkID[$linkNum]) ) {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if(empty($config))&nbsp; &nbsp; &nbsp; &nbsp; $config=$this-&gt;config;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$pconnect&nbsp; &nbsp;= !empty($config[&#8216;params&#8217;][&#8216;persist&#8217;])? $config[&#8216;params&#8217;][&#8216;persist&#8217;]:$this-&gt;pconnect;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$conn = $pconnect ? &#8216;mssql_pconnect&#8217;:&#8217;mssql_connect&#8217;;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/ \u5904\u7406\u4e0d\u5e26\u7aef\u53e3\u53f7\u7684socket\u8fde\u63a5\u60c5\u51b5<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$sepr = IS_WIN ? &#8216;,&#8217; : &#8216;:&#8217;;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$host = $config[&#8216;hostname&#8217;].($config[&#8216;hostport&#8217;]?$sepr.&quot;{$config[&#8216;hostport&#8217;]}&quot;:&#8221;);<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$this-&gt;linkID[$linkNum] = $conn( $host, $config[&#8216;username&#8217;], $config[&#8216;password&#8217;]);<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if ( !$this-&gt;linkID[$linkNum] )E(&quot;Couldn&#8217;t connect to SQL Server on $host&quot;);<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if ( !empty($config[&#8216;database&#8217;])&amp;&amp; !mssql_select_db($config[&#8216;database&#8217;], $this-&gt;linkID[$linkNum]) ) {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; E(&quot;Couldn&#8217;t open database &#8216;&quot;.$config[&#8216;database&#8217;]);<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/ \u6807\u8bb0\u8fde\u63a5\u6210\u529f<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$this-&gt;connected =true;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u6ce8\u9500\u6570\u636e\u5e93\u5b89\u5168\u4fe1\u606f<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if(1 != C(&#8216;DB_DEPLOY_TYPE&#8217;)) unset($this-&gt;config);<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;return $this-&gt;linkID[$linkNum];<br \/>  &nbsp; &nbsp; }\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4e00\u4f4d\u4e0d\u77e5\u540d\u7f51\u53cb<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u53ef\u4ee5\u5de6\u8fb9\u8054\u7cfb\u6211QQ\uff0c\u6709\u507f\u89e3\u51b3yc013t\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u62c8\u82b1\u5fae\u7b11<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6570\u636e\u5e93\u5bc6\u7801\u9519\u8bef \u6216\u8005\u662fMySQL\u6743\u9650\u4e0d\u591f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>dxxzst<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9700\u8981\u4fee\u6539\u4e00\u4e0b\u6570\u636e\u5e93\u94fe\u63a5\u914d\u7f6e\u5427\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>why?<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6539\u6539\u914d\u7f6e\u6587\u4ef6 \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>zhaolianyue<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\twhy? \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-2-11 13:52<br \/>  \u6539\u6539\u914d\u7f6e\u6587\u4ef6<\/p>\n<p> \u5982\u4f55\u67e5\u627e\u914d\u7f6e\u6587\u4ef6\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>zhaolianyue<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e00\u4f4d\u4e0d\u77e5\u540d\u7f51\u53cb \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-2-11 13:40<br \/>  \u53ef\u4ee5\u5de6\u8fb9\u8054\u7cfb\u6211QQ\uff0c\u6709\u507f\u89e3\u51b3<\/p>\n<p> \u51e0\u4e24\u94f6\u5b50\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>why?<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tzhaolianyue \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-2-11 14:08<br \/>  \u5982\u4f55\u67e5\u627e\u914d\u7f6e\u6587\u4ef6<\/p>\n<p> cd \u9879\u76ee\u8def\u5f84 <br \/>  grep -i jiexi_j1u_cn -r .\/ <\/p>\n<p>  \u627e\u4e0d\u5230\u7684\u8bdd \u6211\u4e5f\u6ca1\u6551\u4e86 \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>wenwei7532<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u53bb\u6570\u636e\u5e93\u540e\u53f0\u628a\u6570\u636e\u5e93\u6587\u4ef6\u5bfc\u5165\u3002<\/p>\n<p>  \u7d2b\u85af\u5e03\u4e01\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>zhaolianyue<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\twenwei7532 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-2-11 15:11<br \/>  \u53bb\u6570\u636e\u5e93\u540e\u53f0\u628a\u6570\u636e\u5e93\u6587\u4ef6\u5bfc\u5165\u3002<\/p>\n<p>  \u7d2b\u85af\u5e03\u4e01<\/p>\n<p> \u65b0\u5efa\u6570\u636e\u5e93 \u8fd8\u662f\u76f4\u63a5\u5bfc\u5165root\u91cc\u9762\uff1f\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>zhaolianyue \u5927\u4f6c\u6709\u8bdd\u8bf4&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\/23888"}],"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=23888"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/23888\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23888"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}