{"id":548751,"date":"2021-12-25T22:41:29","date_gmt":"2021-12-25T14:41:29","guid":{"rendered":"http:\/\/4563.org\/?p=548751"},"modified":"2021-12-25T22:41:29","modified_gmt":"2021-12-25T14:41:29","slug":"%e3%80%90%e6%98%8e%e7%9b%98100%e3%80%91%e8%a7%a3%e5%86%b3%e4%b8%aalinux-%e4%b8%8b-%e4%bd%bf%e7%94%a8odbc_connect","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=548751","title":{"rendered":"\u3010\u660e\u76d8100\u3011,\u89e3\u51b3\u4e2aLinux \u4e0b \u4f7f\u7528odbc_connect()"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>FXB<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u3010\u660e\u76d8100\u3011,\u89e3\u51b3\u4e2aLinux \u4e0b \u4f7f\u7528odbc_connect()<\/h3>\n<p>  \t\tcsdn\u539f\u8d34\u5730\u5740:https:\/\/ask.csdn.net\/questions\/7613215<\/p>\n<p>  MDZZ \u8fd9\u4e2a\u5730\u65b9\u641c\u7684\u8d44\u6599\u5168tm\u662f\u8f6c\u8f7d\u7684 ,\u6298\u817e3\u5929 \u4e86 \u6ca1\u641e\u5b9a<\/p>\n<p>  \u76ee\u524d\u5df2\u7ecf\u5b9e\u73b0\u7684\u662f new PDO()<\/p>\n<p>  linux + \u5b9d\u5854\u7f16\u8bd1php7 + \u8bbf\u95eemssql2000 <br \/>  \u901a\u8fc7unixodbc+freetds \u5b9e\u73b0\u7684,\u4f46\u662f\u5728php\u91cc\u4e00\u76f4\u7528\u4e0d\u4e0aodbc_connect() \u8fd9\u4e2a\u547d\u4ee4 <\/p>\n<p>  \u53ea\u80fd\u7528 new PDO(&quot;odbc:Driver={FreeTDS};Server=XX.XX.XX,1433;Database=DATANAME;&quot;,&#8217;sa&#8217;,&#8217;PASS&#8217;);<\/p>\n<p>  \u56e0\u4e3a\u662f\u5b9a\u5236\u7a0b\u5e8f&#8230;\u4e0d\u60f3\u6362\u592a\u591a\u547d\u4ee4. <\/p>\n<p>  \u6211\u5c31\u5355\u7eaf\u7684\u60f3\u5b83\u5728linux \u4e0b\u80fd\u7528<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; $con = odbc_connect(&#8216;DRIVER={FreeTDS};SERVER=xx.xxx.xxx;DATABASE=xxxx&#8217;,&#8217;sa&#8217;,&#8217;xxxx&#8217;);<br \/>  \u600e\u4e48\u5c31\u8fd9\u4e48\u96be\u5462?<br \/>  windows\u73af\u5883\u4e0b\u53ef\u4ee5\u770b\u5230&gt;&gt;<br \/>  https:\/\/img.fxb.cc\/images\/QQ20211223180059eaa83b5049d91d69.png<\/p>\n<p>  linux\u73af\u5883\u4e0b\u6ca1\u6709\u5355\u72ecodbc\u7684\u9009\u9879.\u6211\u4e0d\u4f1a\u7f16\u8bd1&#8230;\u53ea\u6709pdo_odbc (\u7801\u7684,\u7f51\u4e0a\u641c\u7684\u8d44\u6599\u5168\u662f\u8fd9\u79cd\u7684)<br \/>  https:\/\/img.fxb.cc\/images\/QQ202112231801212b031fb28e4cf6f4.png<\/p>\n<p>  \u8fd8\u662f\u8bf4linux \u672c\u8eab\u5c31\u4e0d\u80fd\u8fd9\u6837\u7528? \u4f46\u662f\u6211\u770bphp\u6e90\u7801\u91cc\u6709\u8fd9\u4e2a\u6269\u5c55&#8230;.\u548b\u7f16\u8bd1\u5462<br \/>  https:\/\/img.fxb.cc\/images\/image4497308400584bb7.png<\/p>\n<p>  \u4e13\u4e1a\u7684\u4e8b\u4ea4\u7ed9\u4e13\u4e1a\u7684\u4eba.\u54ea\u4e2a\u5927\u4f6c\u80fd\u89e3\u51b3.\u660e\u76d8100\u7ea2\u5305.\u6211\u61d2\u5f97\u6574\u4e86 ,\u641e\u4e863\u5929\u4e86,\u592a\u7d2f\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>FXB<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t:lol \u6709\u6ca1\u6709\u5927\u4f6c\u6551\u6551\u6211\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>FXB<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t:(\u5927\u4f6c\u90fd\u770b\u4e0d\u4e0a1\u5f20\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kooneey<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4f60\u662f\u600e\u4e48\u5b89\u88c5\u7684php\uff1f\u5982\u679c\u662fapt\u4e4b\u7c7b\u7684\u5305\u7ba1\u7406\u7684\u8bdd\uff0c\u6709php7.4-odbc (7.4\u66ff\u6362\u6210\u4f60\u7684\u7248\u672c\uff09\u8fd9\u79cd\u6269\u5c55\uff0c\u5b89\u88c5\u5b8c\u4e86\u91cd\u542ffpm\u4e00\u7c7b\u7684\u5e94\u8be5\u5c31\u53ef\u4ee5odbc_connect\u4e86<\/p>\n<p>  \u7f16\u8bd1\u5b89\u88c5\u7684\u8bdd\u5927\u4e0d\u4e86\u628a\u6240\u6709Odbc\u76f8\u5173\u7684\u90fd\u5e26\u4e0a\u54af\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Trojan.<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 Trojan. \u4e8e 2021-12-23 18:38 \u7f16\u8f91 <\/p>\n<p> apt install php-odbc -y<\/p>\n<p>  \u7f3a\u5565\u88c5\u5565\uff0c\u968f\u65f6\u53ef\u88c5\u3002 \u591a\u7b80\u5355\u7684\u4e8b\uff0c\u4f60\u975e\u8981\u7f16\u8bd1\u7684\uff0c\u5c31\u4e00\u822c\u4eba\uff0c\u4f60\u6240\u7528\u5230\u7684\u51e0\u6838\u51e0G\u7684\u5c0f\u9e21\uff0c\u7f16\u8bd1\u662f\u6ca1\u5565\u7279\u6b8a buff \u7684<br \/>  \u5230\u4e86\u9ad8\u6027\u80fd\u7684\u72ec\u670d\u518d\u8bf4\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>LiuJia<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u60a8\u597d\uff0c\u8bf7\u95ee\u6211\u53ef\u4ee5\u4e3a\u60a8\u8bd5\u8bd5\u5417\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>FXB<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tkooneey \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-12-23 18:36<br \/>  \u4f60\u662f\u600e\u4e48\u5b89\u88c5\u7684php\uff1f\u5982\u679c\u662fapt\u4e4b\u7c7b\u7684\u5305\u7ba1\u7406\u7684\u8bdd\uff0c\u6709php7.4-odbc (7.4\u66ff\u6362\u6210\u4f60\u7684\u7248\u672c\uff09\u8fd9\u79cd\u6269\u5c55\uff0c\u5b89\u88c5\u5b8c\u4e86\u91cd &#8230;<\/p>\n<p> \u6211\u662f\u7528\u7684\u5b9d\u5854\u5b89\u88c5\u7684.:(\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>FXB<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tTrojan. \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-12-23 18:37<br \/>  \u7f3a\u5565\u88c5\u5565\uff0c\u968f\u65f6\u53ef\u88c5\u3002 \u591a\u7b80\u5355\u7684\u4e8b\uff0c\u4f60\u975e\u8981\u7f16\u8bd1\u7684\uff0c\u5c31\u4e00\u822c\u4eba\uff0c\u4f60\u6240\u7528\u5230\u7684\u51e0\u6838\u51e0G\u7684\u5c0f\u9e21\uff0c\u7f16\u8bd1\u662f\u6ca1\u5565\u7279\u6b8a b &#8230;<\/p>\n<p> \u56e0\u4e3a\u4e0d\u7528\u7f16\u8bd1\u7684 \u7528\u5b9d\u5854\u7684\u9759\u6001 pdo_odbc\u8fd9\u4e2a\u90fd\u641e\u4e0d\u5b9a..\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>konololi<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u53c8\u662f\u4e00\u4e2a\u7f16\u8bd1\u5b89\u88c5\u7684\uff0c\u7b80\u76f4xs\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>FXB<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tkonololi \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-12-23 19:08<br \/>  \u53c8\u662f\u4e00\u4e2a\u7f16\u8bd1\u5b89\u88c5\u7684\uff0c\u7b80\u76f4xs<\/p>\n<p> \u4e0d\u7f16\u8bd1\u5b89\u88c5\uff0c\u76ee\u5f55\u91cc\u90fd\u6ca1\u90a3\u4e2a\u6587\u4ef6\u5440\uff01\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>FXB \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u3010\u660e\u76d810&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/548751"}],"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=548751"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/548751\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=548751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=548751"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=548751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}