{"id":1587,"date":"2015-05-21T14:24:32","date_gmt":"2015-05-21T06:24:32","guid":{"rendered":"http:\/\/www.menglanglang.cn\/?p=1587"},"modified":"2020-07-05T20:53:18","modified_gmt":"2020-07-05T12:53:18","slug":"%e4%bb%8esql-server%e6%95%b0%e6%8d%ae%e5%ba%93%e5%90%91mysql%e6%95%b0%e6%8d%ae%e5%ba%93%e5%af%bc%e5%85%a5%e6%95%b0%e6%8d%ae","status":"publish","type":"post","link":"http:\/\/www.menglanglang.cn\/?p=1587","title":{"rendered":"\u4eceSQL Server\u6570\u636e\u5e93\u5411Mysql\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e"},"content":{"rendered":"<p><span style=\"font-size: medium;\">\u9879\u76ee\u9700\u8981\uff0c\u7531\u4e8e\u9879\u76ee\u5148\u524d\u662f\u5728 SQL Server \u6570\u636e\u5e93\u5f00\u53d1\u7684\uff0c\u6240\u6709\u6570\u636e\u90fd\u5728 SQL Server \u4e2d\uff0c\u73b0\u5728\u9700\u8981\u628a\u6570\u636e\u642c\u5230 MySQL \u6570\u636e\u5e93\u4e2d\uff0c\u65b9\u6cd5\u6709\u4e0d\u5c11\u3002\u591a\u6570\u60c5\u51b5\u4e0b\u9996\u5148\u60f3\u5230\u7684\u662f\uff0c\u5728 SQL Server \u4e2d\u5bfc\u51fa\u6570\u636e\u6210\u4e00\u79cd\u6587\u4ef6\u683c\u5f0f\uff0c\u7136\u540e\u5728 MySQL \u4e2d\u5bfc\u5165\u6587\u4ef6\u5c31\u53ef\u4ee5\u4e86\u3002\u4f46\u8fd9\u6837\u5f80\u5f80\u5f88\u9ebb\u70e6\uff0c\u56e0\u4e3a\u5982\u679c\u662f\u5728\u540c\u4e00\u53f0\u4e3b\u673a\u4e0a\uff0c\u5b89\u88c5\u6709 SQL Server \u548c MySQL \u8fd8\u597d\uff0c\u4f46\u5982\u679c\u662f\u4e24\u53f0\u4e3b\u673a\uff0c\u5219\u5f80\u5f80\u4e0d\u6210\u529f\uff0c\u4f1a\u6709\u5f88\u591a\u9519\u8bef\uff0c\u800c\u4e14\u6570\u636e\u5f88\u5bb9\u6613\u4e71\u3002<\/span><\/p>\n<p><span style=\"font-size: medium;\">\u6240\u4ee5\u8bf4\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\uff0c\u8fd8\u662f\u8fd0\u7528\u9a71\u52a8\uff0c\u76f4\u63a5\u4ece\u4e00\u4e3b\u673a\u5230\u53e6\u4e00\u4e3b\u673a\uff0c\u4ece\u4e00\u5e93\u5230\u53e6\u4e00\u5e93\u7684 COPY\uff0c\u662f\u7070\u5e38\u723d\u7684\u54c8\uff0c\u5728\u8fd9\u91cc\u5199\u4e2a\u7b14\u8bb0\uff0c\u4f9b\u5927\u5bb6\u53c2\u8003\u3002<\/span><\/p>\n<p>\u73af\u5883\uff1a<\/p>\n<p>SQL Server \u6570\u636e\u5e93\u5b89\u88c5\u5728 XP \u4e3b\u673a\u4e0a\uff0cIP\u4e3a 192.168.0.9\uff0c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e3a sa\uff0c\u5bc6\u7801\u4e3a\u7a7a\u3002<\/p>\n<p>MySQL \u6570\u636e\u5e93\uff0c\u5b89\u88c5\u5728 Linux \u4e3b\u673a\u4e0a\uff0cIP\u4e3a 192.168.0.155\uff0c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e3a root\uff0c\u5bc6\u7801\u4e3a123456\u3002<\/p>\n<p>MySQL \u5ba2\u6237\u7aef\u5de5\u5177\uff1aNavicat\uff0c\u8be5\u5de5\u5177\u8be6\u7ec6\u53c2\u8003\u6587\u7ae0\u300a<a title=\"\u4e00\u6b3e\u975e\u5e38\u597d\u7528\u7684\u8fde\u63a5\u6570\u636e\u5e93\u7684\u5de5\u5177\" href=\"http:\/\/www.menglanglang.cn\/?p=1331\" target=\"_blank\" rel=\"noopener noreferrer\">\u4e00\u6b3e\u975e\u5e38\u597d\u7528\u7684\u8fde\u63a5\u6570\u636e\u5e93\u7684\u5de5\u5177<\/a>\u300b\u3002<\/p>\n<p><strong>\u7279\u522b\u8bf4\u660e\uff1a\u5982\u679c\u4e24\u53f0\u4e3b\u673a\u4e0d\u5728\u540c\u4e00\u5c40\u57df\u7f51\u5185\uff0c\u4e5f\u6ca1\u95ee\u9898\uff0c\u4e0b\u9762\u65b9\u6cd5\u90fd\u9002\u7528\u3002<\/strong><\/p>\n<p><strong><span style=\"color: #ff00ff; font-size: medium;\">\u7b2c\u4e00\u6b65\uff0c\u7528\u5de5\u5177\u00a0Navicat \u8fde\u63a5\u00a0MySQL \u6570\u636e\u5e93\u3002<\/span><\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" src=\"http:\/\/www.menglanglang.cn\/pic\/2015\/05\/sql_mysql_01.jpg\" alt=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" width=\"601\" height=\"641\" \/><\/p>\n<p><strong><span style=\"color: #ff00ff; font-size: medium;\">\u7b2c\u4e8c\u6b65\uff0c\u6253\u5f00\u6570\u636e\u5e93\u8fde\u63a5\uff0c\u65b0\u5efa\u6570\u636e\u5e93\uff0c\u5e76\u6253\u5f00\u6570\u636e\u5e93\u3002<\/span><\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" src=\"http:\/\/www.menglanglang.cn\/pic\/2015\/05\/sql_mysql_02.jpg\" alt=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" width=\"304\" height=\"112\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" src=\"http:\/\/www.menglanglang.cn\/pic\/2015\/05\/sql_mysql_03.jpg\" alt=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" width=\"251\" height=\"253\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" src=\"http:\/\/www.menglanglang.cn\/pic\/2015\/05\/sql_mysql_04.jpg\" alt=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" width=\"456\" height=\"398\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" style=\"text-indent: 2em;\" title=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" src=\"http:\/\/www.menglanglang.cn\/pic\/2015\/05\/sql_mysql_05.jpg\" alt=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" width=\"282\" height=\"134\" \/><\/p>\n<p><strong><span style=\"color: #ff00ff; font-size: medium;\">\u7b2c\u4e09\u6b65\uff0c\u65b0\u5efa\u5bfc\u5165\u5411\u5bfc\u5e76\u914d\u7f6e\u3002<\/span><\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" src=\"http:\/\/www.menglanglang.cn\/pic\/2015\/05\/sql_mysql_06.jpg\" alt=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" width=\"309\" height=\"135\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" src=\"http:\/\/www.menglanglang.cn\/pic\/2015\/05\/sql_mysql_07.jpg\" alt=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" width=\"536\" height=\"438\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" src=\"http:\/\/www.menglanglang.cn\/pic\/2015\/05\/sql_mysql_08.jpg\" alt=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" width=\"539\" height=\"511\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" src=\"http:\/\/www.menglanglang.cn\/pic\/2015\/05\/sql_mysql_09.jpg\" alt=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" width=\"537\" height=\"509\" \/><\/p>\n<p><span style=\"color: #ff0000;\">\u6ce8\u610f\uff1a\u5728\u4e0a\u65b9\u5bf9\u8bdd\u6846\uff0c\u7b2c 6 \u6b65\u70b9\u51fb\u786e\u5b9a\u540e\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0\u5982\u4e0b\u9519\u8bef\uff1a<\/span><\/p>\n<pre><strong><span style=\"color: #ff0000;\">\u65e0\u6cd5\u6253\u5f00Provider=SQLNCLI10.1;Integrated Security=\"\";Persist Security Info=False;User ID=sa;Initial Catalog=pms_db_cf;Data Source=192.168.0.9;Initial File Name=\"\";Server SPN=\"\"\u3002<\/span><\/strong><\/pre>\n<p><strong>\u8fd9\u662f\u56e0\u4e3a\u9a71\u52a8\u9009\u7684\u4e0d\u5bf9\uff1a<\/strong><\/p>\n<p><strong>\u5982\u679c\u6e90\u6570\u636e\u5e93\u4e3b\u673a\u662f XP\uff0c\u5219\u9009\u62e9\u9a71\u52a8\u00a0<span style=\"color: #ff0000;\">Microsoft\u00a0OLE\u00a0DB\u00a0Provider\u00a0for\u00a0SQL Server<\/span>\uff0c\u4e32\u4fe1\u606f\u5982\u4e0b\uff1a<\/strong><\/p>\n<p><strong>Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=pms_db_cf;Data Source=192.168.0.9<\/strong><\/p>\n<p><strong>\u5982\u679c\u6e90\u6e90\u6570\u636e\u5e93\u4e3b\u673a\u662f\u00a0Win7\uff0c\u5219\u9009\u62e9\u9a71\u52a8\u00a0<span style=\"color: #ff0000;\">SQL Server\u00a0Native Client\u00a010.0<\/span>\uff0c\u4e32\u4fe1\u606f\u5982\u4e0b\uff1a<\/strong><\/p>\n<p><strong>Provider=SQLNCLI10.1;Integrated Security=\"\";Persist Security Info=False;User ID=sa;Initial Catalog=pms_db_cf;Data Source=192.168.0.9;Initial File Name=\"\";Server SPN=\"\"<\/strong><\/p>\n<p><strong>\u987a\u4fbf\u89e3\u91ca\u4e00\u4e0b\uff0c\u4e0a\u9762\u7684\u4e32\u4e2d\u5404\u90e8\u5206\u7684\u542b\u4e49\uff1a<\/strong><\/p>\n<p><strong>Provider=<span style=\"font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;\">\u6570\u636e\u5e93\u9a71\u52a8\u7248\u672c\u3002<\/span><\/strong><\/p>\n<p><strong>Integrated Security=<span style=\"font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;\">\u4ee5\u54ea\u79cd\u7528\u6237\u8eab\u4efd\u767b\u9646\u6570\u636e\u5e93\u3002<\/span><\/strong><\/p>\n<p><strong>Persist Security Info=<span style=\"font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;\">\u9ed8\u8ba4\u503c\u662f<\/span><span style=\"font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;\">False<\/span><span style=\"font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;\">\u3002<\/span><\/strong><\/p>\n<p><strong>User ID=\u7528\u6237\u540d\u3002<\/strong><\/p>\n<p><strong>Initial Catalog=\u6e90\u6570\u636e\u5e93\u540d\u3002<\/strong><\/p>\n<p><strong>Data Source=\u6e90\u4e3b\u673aIP\u5730\u5740\u3002<\/strong><\/p>\n<p><strong><span style=\"text-indent: 2em; font-size: medium; color: #ff00ff;\">\u7b2c\u56db\u6b65\uff0c\u9009\u62e9\u9700\u8981\u5bfc\u5165\u7684\u6570\u636e\uff0c\u5e76\u5bfc\u5165\u5373\u53ef\u3002<\/span><\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" src=\"http:\/\/www.menglanglang.cn\/pic\/2015\/05\/sql_mysql_10.jpg\" alt=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" width=\"536\" height=\"438\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" src=\"http:\/\/www.menglanglang.cn\/pic\/2015\/05\/sql_mysql_11.jpg\" alt=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" width=\"536\" height=\"438\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" src=\"http:\/\/www.menglanglang.cn\/pic\/2015\/05\/sql_mysql_12.jpg\" alt=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" width=\"536\" height=\"438\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" src=\"http:\/\/www.menglanglang.cn\/pic\/2015\/05\/sql_mysql_13.jpg\" alt=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" width=\"536\" height=\"438\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" src=\"http:\/\/www.menglanglang.cn\/pic\/2015\/05\/sql_mysql_14.jpg\" alt=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" width=\"536\" height=\"438\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" src=\"http:\/\/www.menglanglang.cn\/pic\/2015\/05\/sql_mysql_15.jpg\" alt=\"\u4eceSQL Server\u5411MySQL\u6570\u636e\u5e93\u5bfc\u5165\u6570\u636e\" width=\"536\" height=\"438\" \/><\/p>\n<p><strong><span style=\"font-size: medium; color: #ff00ff;\">\u7b2c\u4e94\u6b65\uff0c\u5237\u65b0\u5bfc\u5165\u7684\u6570\u636e\u5e93\uff0c\u67e5\u770b\u8868\u7ed3\u6784\u4ee5\u53ca\u8868\u4e2d\u7684\u6570\u636e\uff0c\u662f\u5426\u4e0e\u539f\u6765\u7684 SQL Server \u4e2d\u4e00\u81f4\u3002<\/span><\/strong><\/p>\n<p><span style=\"font-size: medium;\">\u5230\u6b64\uff0c\u590d\u5236\u5e93\u7ed3\u6784\u5c31\u7b97\u5b8c\u6210\u4e86\uff0c\u7efc\u4e0a\uff0c\u603b\u6bd4\u5bfc\u51fa\u6210\u6587\u4ef6\uff0c\u518d\u5bfc\u5165\u7b80\u5355\u3002<\/span><\/p>\n<p><span style=\"font-size: medium;\">Good Luck\uff01<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9879\u76ee\u9700\u8981\uff0c\u7531\u4e8e\u9879\u76ee\u5148\u524d\u662f\u5728 SQL Server \u6570\u636e\u5e93\u5f00\u53d1\u7684\uff0c\u6240\u6709\u6570\u636e\u90fd\u5728 SQL Server \u4e2d\uff0c\u73b0\u5728\u9700 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[795],"tags":[186,328,597,799],"class_list":["post-1587","post","type-post","status-publish","format-standard","hentry","category-database","tag-mysql","tag-sql-server","tag-development-tools","tag-799"],"_links":{"self":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts\/1587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1587"}],"version-history":[{"count":4,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts\/1587\/revisions"}],"predecessor-version":[{"id":4723,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts\/1587\/revisions\/4723"}],"wp:attachment":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1587"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}