{"id":7297,"date":"2026-10-10T22:46:35","date_gmt":"2026-10-11T03:46:35","guid":{"rendered":"https:\/\/querystreams.com\/docs\/open-a-firewall-port-on-windows\/"},"modified":"2026-11-09T10:42:32","modified_gmt":"2026-11-09T16:42:32","password":"","slug":"open-a-firewall-port-on-windows","status":"publish","type":"docs","link":"https:\/\/querystreams.com\/zh\/docs\/open-a-firewall-port-on-windows\/","title":{"rendered":"\u5728 Windows \u7cfb\u7edf\u4e0a\u4e3a SQL Server\u3001PostgreSQL\u3001MySQL \u6216 Oracle \u6253\u5f00\u9632\u706b\u5899\u7aef\u53e3"},"content":{"rendered":"<article class=\"qs-d\" data-src=\"database\" data-dest=\"excel\" style=\"--qs-src:102 192 163;--qs-src-deep:19 50 59;--qs-src-ink:26 122 97;--qs-src-tint:#8ed6bd;--qs-dst:33 115 70;--qs-dst-tint:#7fdc9e\">\n<header class=\"qs-d-hero\"><div class=\"qs-d-hero__pair\"><img decoding=\"async\" class=\"src\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/08\/database.png\" alt=\"\" width=\"44\" height=\"44\" loading=\"eager\"><\/div><span class=\"qs-d-eyebrow\">\u8fde\u63a5\u5668\u8bbe\u7f6e \u00b7 Windows \u9632\u706b\u5899<\/span><p class=\"qs-d-hero__title\">\u6253\u5f00\u4e00\u4e2a <em class=\"src\">\u9632\u706b\u5899\u7aef\u53e3<\/em> \u5728 Windows \u7cfb\u7edf\u4e0a<\/p><p class=\"qs-d-hero__sub\">\u5f53\u4ee3\u7406\u7a0b\u5e8f\u8fd0\u884c\u5728\u4e0e\u6570\u636e\u5e93\u4e0d\u540c\u7684\u8ba1\u7b97\u673a\u4e0a\u65f6\uff0c\u6570\u636e\u5e93\u670d\u52a1\u5668\u4e0a\u7684 Windows \u7cfb\u7edf\u5fc5\u987b\u5141\u8bb8\u5176\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u672c\u9875\u9762\u5c06\u9010\u6b65\u4ecb\u7ecd\u5982\u4f55\u4e3a SQL Server\u3001PostgreSQL\u3001MySQL\u3001MariaDB \u548c Oracle \u6dfb\u52a0\u6b64\u89c4\u5219\uff0c\u5e76\u6f14\u793a\u5982\u4f55\u8fdb\u884c\u6d4b\u8bd5\u3002<\/p><div class=\"qs-d-hero__meta\"><span class=\"qs-d-pill\"><i class=\"fa-solid fa-clock\"><\/i> \u5927\u7ea610\u5206\u949f<\/span><span class=\"qs-d-pill\"><i class=\"fa-brands fa-windows\"><\/i> Windows \u6570\u636e\u5e93\u670d\u52a1\u5668<\/span><span class=\"qs-d-pill src\"><i class=\"fa-solid fa-shield-halved\"><\/i> \u4e00\u4e2a\u7aef\u53e3\uff0c\u4ec5\u6b64\u800c\u5df2<\/span><\/div><\/header>\n<div class=\"qs-d-support\" data-zone=\"mint\" data-qs-seen=\"support\"><span class=\"qs-d-chip\"><i class=\"fa-solid fa-life-ring\"><\/i><\/span><div class=\"qs-d-support__body\"><strong>\u9047\u5230\u4efb\u4f55\u95ee\u9898\uff1f\u5c3d\u7ba1\u95ee\u6211\u4eec\u3002<\/strong> \u6253\u5f00 <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">\u652f\u6301<\/a> \u8bf7\u5728\u201cQuery Streams\u201d\uff08\u53f3\u4e0a\u89d2\u83dc\u5355 \u2192 \u652f\u6301\uff09\u4e2d\u7ed9\u6211\u4eec\u53d1\u9001\u6d88\u606f\u3002\u6211\u4eec\u4f1a\u5b89\u6392\u4e13\u4eba\u9605\u8bfb\u60a8\u7684\u6d88\u606f\uff0c\u201c\u6211\u4e0d\u77e5\u9053\u8fd9\u4e2a\u5c4f\u5e55\u9700\u8981\u4ec0\u4e48\u201d\u5c31\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u95ee\u9898\u3002<\/div><\/div>\n\n<h2 id=\"result\">\u4f60\u6700\u7ec8\u4f1a\u5f97\u5230\u4ec0\u4e48<\/h2>\n<p class=\"qs-d-lead\"><img decoding=\"async\" class=\"qs-d-lead__icon\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/08\/database.png\" alt=\"\u6570\u636e\u5e93\u670d\u52a1\u5668\u56fe\u6807\" width=\"28\" height=\"28\"><span>\u5728\u5b58\u653e\u6570\u636e\u5e93\u7684\u8ba1\u7b97\u673a\u4e0a\uff0cWindows Defender \u9632\u706b\u5899\u4e2d\u8bbe\u7f6e\u4e00\u6761\u5165\u7ad9\u89c4\u5219\uff0c\u5141\u8bb8\u6570\u636e\u5e93\u7aef\u53e3\u7684\u6d41\u91cf\u901a\u8fc7\uff0c\u5176\u4ed6\u6d41\u91cf\u5747\u88ab\u7981\u6b62\uff1b\u7136\u540e\uff0c\u4ee3\u7406\u8ba1\u7b97\u673a\u8fdb\u884c\u6d4b\u8bd5\uff0c\u7ed3\u679c\u7b26\u5408\u8981\u6c42\u3002 <strong>TcpTestSucceeded\uff1aTrue<\/strong>\u3002 \u7136\u540e <strong>\u6d4b\u8bd5\u8fde\u63a5<\/strong> \u901a\u8fc7\u95e8\u6237\u7f51\u7ad9\u53ef\u4ee5\u8bbf\u95ee\u6570\u636e\u5e93\u3002<\/span><\/p>\n\n<div class=\"qs-d-note\" data-zone=\"mint\"><i class=\"fa-solid fa-wand-magic-sparkles\"><\/i><p><strong>\u4f60\u771f\u7684\u9700\u8981\u8fd9\u4e2a\u5417\uff1f<\/strong> \u4ec5\u5f53\u4ee3\u7406\u548c\u6570\u636e\u5e93\u90fd\u5904\u4e8e\u5f00\u542f\u72b6\u6001\u65f6\u624d\u4f1a\u5982\u6b64\u3002 <strong>\u4e0d\u540c\u7684<\/strong> \u8ba1\u7b97\u673a\u3002\u5982\u679c\u4ee3\u7406\u7a0b\u5e8f\u5b89\u88c5\u5728\u6570\u636e\u5e93\u670d\u52a1\u5668\u672c\u8eab\u4e0a\uff0c\u5b83\u5c06\u8fde\u63a5\u5230\u2026\u2026 <strong>\u672c\u5730\u4e3b\u673a<\/strong> \u9632\u706b\u5899\u4e0d\u53c2\u4e0e\u5176\u4e2d\uff1b\u8bf7\u8df3\u8fc7\u6b64\u9875\u9762\u3002\u4ee3\u7406\u7a0b\u5e8f\u81ea\u8eab\u4e0eQuery Streams\u7684\u8fde\u63a5\u662f\u51fa\u7ad9\u7684\uff0c\u56e0\u6b64\u5176\u8ba1\u7b97\u673a\u4e5f\u65e0\u9700\u4efb\u4f55\u89c4\u5219\u3002<\/p><\/div>\n\n<h2 id=\"ports\">\u8981\u6253\u5f00\u54ea\u4e2a\u7aef\u53e3<\/h2>\n<p>\u8bf7\u4f7f\u7528\u8fde\u63a5\u5668\u8868\u5355\u4e2d\u6240\u793a\u7684\u7aef\u53e3\u3002 <strong>\u6e2f\u53e3<\/strong> box\u3002\u5982\u679c\u5728\u6570\u636e\u5e93\u5b89\u88c5\u65f6\u6ca1\u6709\u4eba\u66f4\u6539\u8fc7\u5b83\uff0c\u5219\u4e3a\u9ed8\u8ba4\u503c\uff1a<\/p>\n<table class=\"qs-d-table\">\n  <thead><tr><th>\u6570\u636e\u5e93<\/th><th>\u534f\u8bae\u548c\u7aef\u53e3<\/th><th>\u7ec6\u8282<\/th><\/tr><\/thead>\n  <tbody>\n    <tr><td>Microsoft SQL Server\uff08\u9ed8\u8ba4\u5b9e\u4f8b\uff09<\/td><td><strong>TCP 1433<\/strong><\/td><td><a href=\"#sql-server\">SQL \u670d\u52a1\u5668<\/a><\/td><\/tr>\n    <tr><td>SQL Server \u547d\u540d\u5b9e\u4f8b\u6216 SQL Express\uff08<strong>\u670d\u52a1\u5668\\SQLEXPRESS<\/strong>)<\/td><td><strong>UDP 1434<\/strong> \u52a0\u4e0a\u5b9e\u4f8b\u81ea\u8eab\u7684 TCP \u7aef\u53e3<\/td><td><a href=\"#sql-named\">\u547d\u540d\u5b9e\u4f8b<\/a><\/td><\/tr>\n    <tr><td>PostgreSQL<\/td><td><strong>TCP 5432<\/strong><\/td><td><a href=\"#postgresql\">PostgreSQL<\/a><\/td><\/tr>\n    <tr><td>MySQL \u6216 MariaDB<\/td><td><strong>TCP 3306<\/strong><\/td><td><a href=\"#mysql\">MySQL \u548c MariaDB<\/a><\/td><\/tr>\n    <tr><td>\u7532\u9aa8\u6587<\/td><td><strong>TCP 1521<\/strong><\/td><td><a href=\"#oracle\">\u7532\u9aa8\u6587<\/a><\/td><\/tr>\n  <\/tbody>\n<\/table>\n\n<h2 id=\"add-rule\">\u6dfb\u52a0\u89c4\u5219<\/h2>\n<p>\u8bf7\u5728\u5b58\u653e\u6570\u636e\u5e93\u7684\u8ba1\u7b97\u673a\u4e0a\uff0c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u767b\u5f55\u5e76\u6267\u884c\u6b64\u64cd\u4f5c\u3002\u793a\u4f8b\u4e2d\u6253\u5f00\u7684\u662f TCP \u7aef\u53e3 1433\uff1b\u8bf7\u5728\u6b65\u9aa4 6 \u4e2d\u8f93\u5165\u60a8\u81ea\u5df1\u7684\u7aef\u53e3\u53f7\u3002<\/p>\n<div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-circle-info\"><\/i><p><strong>\u5bf9\u6b64\u611f\u5230\u4e0d\u81ea\u5728\uff1f<\/strong> \u8bf7\u670d\u52a1\u5668\u7ba1\u7406\u5458\u201c\u5141\u8bb8\u6765\u81eaQuery Streams\u4ee3\u7406\u8ba1\u7b97\u673a\u7684\u5165\u7ad9 TCP 1433 \u7aef\u53e3\u201d\uff08\u4f7f\u7528\u60a8\u7684\u7aef\u53e3\u53f7\uff09\uff0c\u6216\u8005 <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">\u56de\u590d\u652f\u6301<\/a> \u6211\u4eec\u5c06\u4e0e\u4f60\u4eec\u4e00\u8d77\u5b8c\u6210\u8fd9\u4ef6\u4e8b\u3002<\/p><\/div>\n<ol class=\"qs-d-steps\" data-qs-seen=\"add-rule\">\n  <li class=\"qs-d-step\" data-qs-step=\"1\" id=\"fw-1\">\n    <h3>\u6253\u5f00\u9ad8\u7ea7\u9632\u706b\u5899\u7a97\u53e3<\/h3>\n    <p>\u70b9\u51fb <strong>\u5f00\u59cb<\/strong>\uff0c \u7c7b\u578b <strong>wf.msc<\/strong> \u5e76\u6309 <strong>\u8fdb\u5165<\/strong>\u5982\u679c Windows \u8be2\u95ee <strong>\u60a8\u662f\u5426\u5141\u8bb8\u6b64\u5e94\u7528\u5bf9\u60a8\u7684\u8bbe\u5907\u8fdb\u884c\u66f4\u6539\uff1f<\/strong>\uff0c \u70b9\u51fb <strong>\u662f<\/strong>\u4e00\u4e2a\u6807\u9898\u4e3a\u201c <strong>Windows Defender \u9ad8\u7ea7\u5b89\u5168\u9632\u706b\u5899<\/strong> \u6253\u5f00\u65f6\uff0c\u5de6\u4fa7\u662f\u5217\u8868\uff0c\u4e2d\u95f4\u662f\u6458\u8981\uff0c\u53f3\u4fa7\u662f\u2026\u2026 <strong>\u884c\u52a8<\/strong> \u53f3\u4fa7\u5217\u8868\u3002<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"2\" id=\"fw-2\">\n    <h3>\u8f6c\u5230\u5165\u7ad9\u89c4\u5219<\/h3>\n    <p>\u5728\u5de6\u4fa7\u5217\u8868\u4e2d\uff0c\u70b9\u51fb <strong>\u5165\u7ad9\u89c4\u5219<\/strong>\u4e2d\u95f4\u90e8\u5206\u5217\u51fa\u4e86\u4e00\u957f\u4e32\u73b0\u6709\u89c4\u5219\uff1b\u60a8\u65e0\u9700\u4fee\u6539\u4efb\u4f55\u89c4\u5219\u3002<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"3\" id=\"fw-3\">\n    <h3>\u5236\u5b9a\u65b0\u89c4\u5219<\/h3>\n    <p>\u5728 <strong>\u884c\u52a8<\/strong> \u70b9\u51fb\u53f3\u4fa7\u5217\u8868\u4e2d\u7684\u201c\u5217\u8868\u201d\u3002 <strong>\u65b0\u89c4\u2026\u2026<\/strong>\u3002 \u8fd9 <strong>\u65b0\u5efa\u5165\u7ad9\u89c4\u5219\u5411\u5bfc<\/strong> \u6253\u5f00 <strong>\u89c4\u5219\u7c7b\u578b<\/strong> \u9875\u9762\u4f1a\u8be2\u95ee <strong>\u60a8\u60f3\u521b\u5efa\u54ea\u79cd\u7c7b\u578b\u7684\u89c4\u5219\uff1f<\/strong><\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"4\" id=\"fw-4\">\n    <h3>\u9009\u62e9\u7aef\u53e3<\/h3>\n    <p>\u70b9\u51fb <strong>\u6e2f\u53e3<\/strong> \uff08\u201c\u63a7\u5236 TCP \u6216 UDP \u7aef\u53e3\u8fde\u63a5\u7684\u89c4\u5219\u201d\uff09\uff0c\u7136\u540e\u5355\u51fb <strong>\u4e0b\u4e00\u9875<\/strong>\u5deb\u5e08\u79fb\u52a8\u5230 <strong>\u534f\u8bae\u548c\u7aef\u53e3<\/strong>.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"5\" id=\"fw-5\">\n    <h3>\u9009\u62e9 TCP<\/h3>\n    <p>\u5728\u4e0b\u9762 <strong>\u8fd9\u6761\u89c4\u5219\u9002\u7528\u4e8e TCP \u8fd8\u662f UDP\uff1f<\/strong>\uff0c \u79bb\u5f00 <strong>TCP<\/strong> \u5df2\u9009\u62e9\u3002\uff08\u9009\u62e9\uff09 <strong>UDP<\/strong> \u4ec5\u9002\u7528\u4e8e SQL Server Browser \u89c4\u5219\uff0c\u7aef\u53e3 1434\u3002 <a href=\"#sql-named\">\u547d\u540d\u5b9e\u4f8b\u90e8\u5206<\/a>.)<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"6\" id=\"fw-6\">\n    <h3>\u8f93\u5165\u7aef\u53e3<\/h3>\n    <p>\u5728\u4e0b\u9762 <strong>\u8fd9\u6761\u89c4\u5219\u9002\u7528\u4e8e\u6240\u6709\u672c\u5730\u7aef\u53e3\u8fd8\u662f\u7279\u5b9a\u7684\u672c\u5730\u7aef\u53e3\uff1f<\/strong>\uff0c \u9009\u62e9 <strong>\u5177\u4f53\u672c\u5730\u7aef\u53e3\uff1a<\/strong> \u7136\u540e\u5728\u6846\u4e2d\u8f93\u5165\u7aef\u53e3\u53f7\uff0c\u4f8b\u5982 <strong>1433<\/strong>\u53ea\u9700\u8f93\u5165\u6570\u5b57\uff0c\u4e0d\u8981\u6709\u7a7a\u683c\u3002\u70b9\u51fb <strong>\u4e0b\u4e00\u9875<\/strong>.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"7\" id=\"fw-7\">\n    <h3>\u5141\u8bb8\u8fde\u63a5<\/h3>\n    <p>\u8fd9 <strong>\u884c\u52a8<\/strong> \u9875\u9762\u8be2\u95ee <strong>\u5f53\u8fde\u63a5\u7b26\u5408\u6307\u5b9a\u6761\u4ef6\u65f6\uff0c\u5e94\u8be5\u91c7\u53d6\u4ec0\u4e48\u63aa\u65bd\uff1f<\/strong> \u79bb\u5f00 <strong>\u5141\u8bb8\u8fde\u63a5<\/strong> \u9009\u4e2d\u5e76\u70b9\u51fb <strong>\u4e0b\u4e00\u9875<\/strong>.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"8\" id=\"fw-8\">\n    <h3>\u9009\u62e9\u9002\u7528\u60c5\u51b5<\/h3>\n    <p>\u8fd9 <strong>\u8f6e\u5ed3<\/strong> \u9875\u9762\u8be2\u95ee <strong>\u8fd9\u6761\u89c4\u5219\u4f55\u65f6\u9002\u7528\uff1f<\/strong> \u5305\u542b\u4e09\u4e2a\u590d\u9009\u6846\uff1a <strong>\u9886\u57df<\/strong>, <strong>\u79c1\u4eba\u7684<\/strong> \u548c <strong>\u6c11\u4f17<\/strong>\u9664\u975e\u7f51\u7edc\u7ba1\u7406\u5458\u53e6\u6709\u6307\u793a\uff0c\u5426\u5219\u8bf7\u4fdd\u6301\u8fd9\u4e09\u9879\u90fd\u52fe\u9009\uff1bWindows \u4f1a\u51b3\u5b9a\u751f\u6548\u54ea\u4e00\u9879\uff0c\u5982\u679c\u670d\u52a1\u5668\u4f7f\u7528\u4e86\u9519\u8bef\u7684\u8bbe\u7f6e\uff0c\u4ee3\u7406\u7a0b\u5e8f\u5c31\u4f1a\u88ab\u6084\u6084\u963b\u6b62\u3002\u70b9\u51fb <strong>\u4e0b\u4e00\u9875<\/strong>.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"9\" id=\"fw-9\">\n    <h3>\u547d\u540d\u5e76\u5b8c\u6210<\/h3>\n    <p>\u5728 <strong>\u540d\u79f0<\/strong> \u5728\u9875\u9762\u4e0a\uff0c\u8f93\u5165\u4e00\u4e2a\u4f60\u4ee5\u540e\u80fd\u8bb0\u4f4f\u7684\u540d\u79f0\uff0c\u4f8b\u5982 <strong>Query Streams\u4ee3\u7406 \u2013 SQL Server 1433<\/strong>\u7136\u540e\u70b9\u51fb <strong>\u7ed3\u675f<\/strong>\u5411\u5bfc\u5173\u95ed\uff0c\u60a8\u7684\u89c4\u5219\u51fa\u73b0\u5728\u2026\u2026 <strong>\u5165\u7ad9\u89c4\u5219<\/strong> \u5217\u8868\u4e2d\u4f1a\u663e\u793a\u4e00\u4e2a\u7eff\u8272\u52fe\u53f7\u3002\u5b83\u7acb\u5373\u751f\u6548\uff0c\u65e0\u9700\u91cd\u542f\u3002<\/p>\n  <\/li>\n<\/ol>\n<div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-circle-info\"><\/i><p><strong>\u60f3\u8981\u66f4\u7d27\u4e00\u4e9b\u5417\uff1f<\/strong> \u4e0a\u8ff0\u89c4\u5219\u5141\u8bb8\u4efb\u4f55\u8ba1\u7b97\u673a\u5c1d\u8bd5\u8be5\u7aef\u53e3\u3002\u8981\u4ec5\u5141\u8bb8\u4ee3\u7406\u7684\u8ba1\u7b97\u673a\u5c1d\u8bd5\uff0c\u8bf7\u53cc\u51fb\u60a8\u7684\u89c4\u5219\uff0c\u7136\u540e\u6253\u5f00\u2026\u2026 <strong>\u8303\u56f4<\/strong> \u6807\u7b7e\u9875\uff0c\u5728 <strong>\u8fdc\u7a0bIP\u5730\u5740<\/strong> \u9009\u62e9 <strong>\u8fd9\u4e9bIP\u5730\u5740\uff1a<\/strong>\uff0c \u70b9\u51fb <strong>\u6dfb\u52a0\u2026<\/strong>\u8f93\u5165\u4ee3\u7406\u8ba1\u7b97\u673a\u7684 IP \u5730\u5740\uff0c\u7136\u540e\u5355\u51fb <strong>\u597d\u7684<\/strong> \u4e24\u6b21\u3002\u5982\u679c\u8be5\u8ba1\u7b97\u673a\u7684\u5730\u5740\u4e4b\u540e\u53d1\u751f\u53d8\u5316\uff0c\u4ee3\u7406\u7a0b\u5e8f\u5c06\u518d\u6b21\u88ab\u963b\u6b62\u3002<\/p><\/div>\n<div class=\"qs-d-note\" data-zone=\"mint\"><i class=\"fa-solid fa-life-ring\"><\/i><p>\u5982\u679c\u5176\u4e2d\u4efb\u4f55\u4e00\u70b9\u4e0e\u4f60\u6240\u770b\u5230\u7684\u4e0d\u7b26\uff0c\u8bf7\u505c\u6b62\u5e76 <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">\u56de\u590d\u6211\u4eec\u7684\u5ba2\u670d\u90ae\u4ef6<\/a> \u6211\u4eec\u4f1a\u9644\u4e0a\u5c4f\u5e55\u622a\u56fe\uff0c\u5e76\u4e00\u6b65\u6b65\u6307\u5bfc\u60a8\u5b8c\u6210\u64cd\u4f5c\u3002<\/p><\/div>\n\n<h2 id=\"engines\">\u6bcf\u4e2a\u6570\u636e\u5e93\u7684\u7aef\u53e3<\/h2>\n\n<h3 id=\"sql-server\">\u5fae\u8f6f SQL \u670d\u52a1\u5668<\/h3>\n<p>\u9ed8\u8ba4\u7684 SQL Server \u5b9e\u4f8b\u76d1\u542c <strong>TCP 1433<\/strong>\u8fde\u63a5\u5668\u8868\u5355\u7684\u8d77\u59cb\u7aef\u53e3\u3002\u6309\u7167\u4e0a\u8ff0\u6b65\u9aa4\u6dfb\u52a0\u4e00\u6761 TCP 1433 \u89c4\u5219\u3002\u5982\u679c\u8fde\u63a5\u5668\u4e2d\u7684\u670d\u52a1\u5668\u540d\u79f0\u4e0d\u5305\u542b\u53cd\u659c\u6760\uff08\u4ec5\u5305\u542b\u53cd\u659c\u6760\uff09\uff0c\u5219\u9700\u8981\u6dfb\u52a0\u4e00\u6761 TCP 1433 \u89c4\u5219\u3002 <strong>\u670d\u52a1\u5668<\/strong> \u6216\u8005\u4e00\u4e2a\u5730\u5740\uff09\uff0c\u8fd9\u5c31\u8db3\u591f\u4e86\u3002<\/p>\n<p>\u5982\u679c\u95e8\u6237\u7f51\u7ad9\u4e2d\u7684\u6d4b\u8bd5\u7ed3\u679c\u663e\u793a <strong>\u8fde\u63a5\u5931\u8d25\uff1a\u670d\u52a1\u5668 1433 \u7aef\u53e3\u672a\u54cd\u5e94\u3002SQL Server \u672a\u76d1\u542c\u8be5\u7aef\u53e3\uff0c\u6216\u8005\u4ee3\u7406\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u9632\u706b\u5899\u963b\u6b62\u4e86\u8be5\u7aef\u53e3\u3002<\/strong>\u8981\u4e48\u662f\u8fd9\u6761\u89c4\u5219\uff0c\u8981\u4e48\u662f SQL Server \u81ea\u8eab\u7684 TCP\/IP \u8bbe\u7f6e\uff1b <a href=\"#test\">\u6d4b\u8bd5\u7aef\u53e3<\/a> \u5206\u8fa8\u662f\u54ea\u4e00\u4e2a\u3002<\/p>\n\n<h3 id=\"sql-named\">SQL Server \u547d\u540d\u5b9e\u4f8b\u548c SQL Express<\/h3>\n<p>\u5982\u679c\u670d\u52a1\u5668\u540d\u79f0\u5305\u542b\u53cd\u659c\u6760\uff0c\u4f8b\u5982 <strong>OFFICE-SERVER\\SQLEXPRESS<\/strong>\u5b83\u662f\u4e00\u4e2a\u547d\u540d\u5b9e\u4f8b\u3002\u547d\u540d\u5b9e\u4f8b\u4e0d\u4f7f\u7528 1433 \u7aef\u53e3\uff1a\u5b83\u4f1a\u9009\u62e9\u81ea\u5df1\u7684\u7aef\u53e3\uff0c\u5e76\u4e14\u6709\u4e00\u4e2a\u540d\u4e3a\u201c\u8f85\u52a9\u7a0b\u5e8f\u201d\u7684\u7a0b\u5e8f\u6765\u6307\u5b9a\u7aef\u53e3\u3002 <strong>SQL Server \u6d4f\u89c8\u5668<\/strong> \u544a\u8bc9\u7279\u5de5\u54ea\u4e2a <strong>UDP 1434<\/strong>\u56e0\u6b64\uff0c\u5b83\u9700\u8981\u4e24\u6761\u89c4\u5219\uff1a\u4e00\u6761\u7528\u4e8e UDP 1434\uff0c\u4e00\u6761\u7528\u4e8e\u5b9e\u4f8b\u7684 TCP \u7aef\u53e3\u3002<\/p>\n<div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-circle-info\"><\/i><p><strong>\u5bf9\u6b64\u611f\u5230\u4e0d\u81ea\u5728\uff1f<\/strong> \u5411\u670d\u52a1\u5668\u7ba1\u7406\u5458\u8be2\u95ee\u201cSQLEXPRESS\u5b9e\u4f8b\u7684\u56fa\u5b9aTCP\u7aef\u53e3\uff0c\u4ee5\u53ca\u4e3aSQL Server Browser\u5f00\u653e\u7684UDP 1434\u7aef\u53e3\u201d\uff0c\u6216\u8005 <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">\u56de\u590d\u652f\u6301<\/a>.<\/p><\/div>\n<ol class=\"qs-d-steps\" data-qs-seen=\"sql-named\">\n  <li class=\"qs-d-step\" data-qs-step=\"1\" id=\"named-1\">\n    <h3>\u6253\u5f00 SQL Server \u914d\u7f6e\u7ba1\u7406\u5668<\/h3>\n    <p>\u5728\u6570\u636e\u5e93\u670d\u52a1\u5668\u4e0a\uff0c\u5355\u51fb <strong>\u5f00\u59cb<\/strong> \u548c\u7c7b\u578b <strong>SQL Server \u914d\u7f6e\u7ba1\u7406\u5668<\/strong>\u5982\u679c\u6ca1\u6709\u4efb\u4f55\u663e\u793a\uff0c\u8bf7\u6539\u4e3a\u8f93\u5165\u60a8\u7684 SQL Server \u7248\u672c\u5bf9\u5e94\u7684\u6587\u4ef6\u540d\uff0c\u7136\u540e\u6309 Enter \u952e\u3002 <strong>\u8fdb\u5165<\/strong>: <strong>SQLServerManager16.msc<\/strong> \u9002\u7528\u4e8e SQL Server 2022\uff0c <strong>SQLServerManager15.msc<\/strong> 2019\u5e74\uff0c <strong>SQLServerManager14.msc<\/strong> 2017\u5e74\uff0c <strong>SQLServerManager17.msc<\/strong> 2025 \u5e74\u3002\u70b9\u51fb <strong>\u662f<\/strong> \u5982\u679c Windows \u8bf7\u6c42\u6743\u9650\u3002<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"2\" id=\"named-2\">\n    <h3>\u4e3a\u60a8\u7684\u5b9e\u4f8b\u6253\u5f00 TCP\/IP<\/h3>\n    <p>\u5728\u5de6\u4fa7\u5217\u8868\u4e2d\uff0c\u5c55\u5f00 <strong>SQL Server \u7f51\u7edc\u914d\u7f6e<\/strong> \u5e76\u70b9\u51fb <strong>SQLEXPRESS \u534f\u8bae<\/strong> \uff08\u60a8\u7684\u5b9e\u4f8b\u540d\u79f0\u5728\u201cfor\u201d\u4e4b\u540e\uff09\u3002\u5728\u53f3\u4fa7\uff0c\u68c0\u67e5 <strong>TCP\/IP<\/strong> \u8bf4\u9053 <strong>\u5df2\u542f\u7528<\/strong>\u5982\u679c\u5b83\u8bf4 <strong>\u5df2\u7981\u7528<\/strong>\u53f3\u952e\u5355\u51fb\u5e76\u9009\u62e9 <strong>\u4f7f\u80fd\u591f<\/strong> \u9996\u5148\uff0c\u53cc\u51fb\u3002 <strong>TCP\/IP<\/strong>\u4e00\u4e2a\u6807\u9898\u4e3a\u201c <strong>TCP\/IP \u5c5e\u6027<\/strong> \u6253\u5f00\u3002<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"3\" id=\"named-3\">\n    <h3>\u8bfb\u53d6 IPAll \u4e0b\u7684\u7aef\u53e3<\/h3>\n    <p>\u70b9\u51fb <strong>IP\u5730\u5740<\/strong> \u6309 Tab \u952e\u5e76\u6eda\u52a8\u5230\u6700\u5e95\u90e8\uff0c\u627e\u5230\u6807\u9898\u4e3a\u201c <strong>IPAll<\/strong>\u5b83\u6709\u4e24\u4e2a\u76d2\u5b50\uff1a <strong>TCP\u52a8\u6001\u7aef\u53e3<\/strong> \u548c <strong>TCP\u7aef\u53e3<\/strong>.<\/p>\n    <p>\u5982\u679c <strong>TCP\u7aef\u53e3<\/strong> \u6709\u4e00\u4e2a\u6570\u5b57\uff0c\u90a3\u5c31\u662f\u5b9e\u4f8b\u7684\u56fa\u5b9a\u7aef\u53e3\uff1a\u8bf7\u4f7f\u7528\u5b83\u3002 <strong>TCP\u7aef\u53e3<\/strong> \u662f\u7a7a\u7684\uff0c <strong>TCP\u52a8\u6001\u7aef\u53e3<\/strong> \u663e\u793a\u4e00\u4e2a\u6570\u5b57\uff0c\u4f8b\u5982 <strong>49172<\/strong>\u8fd9\u662f\u5b83\u8fd9\u6b21\u9009\u62e9\u7684\u7aef\u53e3\uff0c\u91cd\u542f\u540e\u53ef\u80fd\u4f1a\u6539\u53d8\u3002\u8981\u56fa\u5b9a\u5b83\uff1a\u5220\u9664\u8be5\u53f7\u7801 <strong>TCP\u52a8\u6001\u7aef\u53e3<\/strong> \u5982\u679c\u6846\u662f\u7a7a\u7684\uff0c\u8bf7\u8f93\u5165\u7aef\u53e3\u53f7\u3002 <strong>TCP\u7aef\u53e3<\/strong> \uff08\u5b83\u539f\u6709\u7684\u6570\u91cf\u5c31\u53ef\u4ee5\u4e86\uff0c\u6216\u8005\uff09 <strong>1433<\/strong> \u5982\u679c\u670d\u52a1\u5668\u4e0a\u6ca1\u6709\u5176\u4ed6\u8bbe\u5907\u4f7f\u7528\u5b83\uff09\uff0c\u7136\u540e\u70b9\u51fb <strong>\u597d\u7684<\/strong>.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"4\" id=\"named-4\">\n    <h3>\u91cd\u542f\u5b9e\u4f8b<\/h3>\n    <p>\u5728\u5de6\u4fa7\u5217\u8868\u4e2d\uff0c\u70b9\u51fb <strong>SQL Server \u670d\u52a1<\/strong>\u5728\u53f3\u4fa7\uff0c\u53f3\u952e\u5355\u51fb <strong>SQL Server (SQLEXPRESS)<\/strong> \u5e76\u9009\u62e9 <strong>\u91cd\u542f<\/strong>\u5c4f\u5e55\u4e0a\u4f1a\u663e\u793a\u51e0\u79d2\u949f\u7684\u8fdb\u5ea6\u6846\u3002\u65b0\u7aef\u53e3\u53ea\u6709\u5728\u91cd\u542f\u540e\u624d\u4f1a\u751f\u6548\u3002\u5728\u6b64\u671f\u95f4\uff0c\u6240\u6709\u4f7f\u7528\u6570\u636e\u5e93\u7684\u7528\u6237\u90fd\u4f1a\u65ad\u5f00\u8fde\u63a5\uff0c\u6240\u4ee5\u8bf7\u9009\u62e9\u4e00\u4e2a\u5b89\u9759\u7684\u65f6\u95f4\u6bb5\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"5\" id=\"named-5\">\n    <h3>\u542f\u52a8 SQL Server \u6d4f\u89c8\u5668<\/h3>\n    <p>\u5728\u540c\u4e00 <strong>SQL Server \u670d\u52a1<\/strong> \u5217\u8868\uff0c\u67e5\u627e <strong>SQL Server \u6d4f\u89c8\u5668<\/strong>\u5982\u679c\u5b83\u7684\u72b6\u6001\u4e0d\u662f <strong>\u8dd1\u6b65<\/strong>\u53cc\u51fb\u6253\u5f00 <strong>\u670d\u52a1<\/strong> \u5236\u8868\u7b26\uff0c\u8bbe\u7f6e <strong>\u542f\u52a8\u6a21\u5f0f<\/strong> \u81f3 <strong>\u81ea\u52a8\u7684<\/strong>\uff0c \u70b9\u51fb <strong>\u7533\u8bf7<\/strong>\u7136\u540e\u53f3\u952e\u5355\u51fb <strong>SQL Server \u6d4f\u89c8\u5668<\/strong> \u5e76\u9009\u62e9 <strong>\u5f00\u59cb<\/strong>.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"6\" id=\"named-6\">\n    <h3>\u6dfb\u52a0\u4e24\u6761\u9632\u706b\u5899\u89c4\u5219<\/h3>\n    <p>\u8ddf\u968f <a href=\"#add-rule\">\u6dfb\u52a0\u89c4\u5219<\/a> \u4e24\u6b21\uff1a\u4e00\u6b21\u4e0e <strong>TCP<\/strong> \u4ee5\u53ca\u6b65\u9aa4 3 \u4e2d\u7684\u7aef\u53e3\uff0c\u4e00\u6b21 <strong>UDP<\/strong> \u548c <strong>1434<\/strong>\u7ed9\u5b83\u4eec\u547d\u540d\uff0c\u4ee5\u4fbf\u533a\u5206\uff0c\u4f8b\u5982 <strong>Query Streams\u4ee3\u7406 \u2013 SQLEXPRESS<\/strong> \u548c <strong>Query Streams\u4ee3\u7406 \u2013 SQL \u6d4f\u89c8\u5668<\/strong>.<\/p>\n  <\/li>\n<\/ol>\n<p>\u5728\u8fde\u63a5\u5668\u8868\u5355\u4e2d\uff0c\u4fdd\u6301\u670d\u52a1\u5668\u4e3a <strong>OFFICE-SERVER\\SQLEXPRESS<\/strong> \u548c <strong>\u6e2f\u53e3<\/strong> \u4f5c\u4e3a <strong>1433<\/strong>\u6d4f\u89c8\u5668\u4f1a\u627e\u5230\u5b9e\u9645\u7aef\u53e3\u3002\u6216\u8005\uff0c\u60a8\u4e5f\u53ef\u4ee5\u8f93\u5165\u6b65\u9aa4 3 \u4e2d\u786e\u5b9a\u7684\u7aef\u53e3\u53f7\u3002 <strong>\u6e2f\u53e3<\/strong> \u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0cUDP 1434 \u89c4\u5219\u548c\u6d4f\u89c8\u5668\u5c31\u90fd\u4e0d\u9700\u8981\u4e86\u3002<\/p>\n<p>\u5982\u679c\u6d4b\u8bd5\u7ed3\u679c\u663e\u793a <strong>\u8fde\u63a5\u5931\u8d25\uff1a\u5728 OFFICE-SERVER \u4e0a\u627e\u4e0d\u5230\u5b9e\u4f8b\u201cSQLEXPRESS\u201d\u3002<\/strong>\u4ee5\u4e0b\u516d\u4e2a\u6b65\u9aa4\u4e2d\u8fd8\u7f3a\u5c11\u4e00\u4e2a\uff1aTCP\/IP \u5df2\u542f\u7528\u3001\u5df2\u91cd\u542f\u3001\u6d4f\u89c8\u5668\u5df2\u8fd0\u884c\uff0c\u6216\u7f3a\u5c11\u4ee5\u4e0b\u4e24\u6761\u89c4\u5219\u4e4b\u4e00\u3002<\/p>\n<div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-circle-info\"><\/i><p><strong>\u5b81\u613f\u5141\u8bb8 SQL Server \u7a0b\u5e8f\u8fd0\u884c\uff0c\u4e5f\u4e0d\u613f\u5141\u8bb8\u7aef\u53e3\u8bbf\u95ee\uff1f<\/strong> \u5fae\u8f6f\u8fd8\u8bb0\u5f55\u4e86\u8be5\u7a0b\u5e8f\u672c\u8eab\u7684\u4e00\u6761\u89c4\u5219\uff0c\u5373\u65e0\u8bba\u5b9e\u4f8b\u9009\u62e9\u54ea\u4e2a\u7aef\u53e3\uff0c\u5b83\u90fd\u4f1a\u9075\u5faa\u8be5\u7aef\u53e3\uff1a\u5728\u5411\u5bfc\u4e2d\u9009\u62e9 <strong>\u7a0b\u5e8f<\/strong> \u800c\u4e0d\u662f\u6e2f\u53e3\uff0c <strong>\u6b64\u7a0b\u5e8f\u8def\u5f84<\/strong>\uff0c \u70b9\u51fb <strong>\u6d4f\u89c8<\/strong> \u5e76\u6311\u9009 <strong>sqlservr.exe<\/strong>\u901a\u5e38\u5728 <strong>C:\\Program Files\\Microsoft SQL Server\\MSSQL16.SQLEXPRESS\\MSSQL\\Binn\\<\/strong> \uff08\u6587\u4ef6\u5939\u540d\u79f0\u5305\u542b\u60a8\u7684\u7248\u672c\u548c\u5b9e\u4f8b\u4fe1\u606f\uff09\u3002SQL Server \u66f4\u65b0\u53ef\u80fd\u4f1a\u79fb\u52a8\u8be5\u6587\u4ef6\u5e76\u7834\u574f\u6b64\u89c4\u5219\uff0c\u56e0\u6b64\u56fa\u5b9a\u7aef\u53e3\u66f4\u5bb9\u6613\u4fdd\u6301\u6b63\u5e38\u5de5\u4f5c\u3002<\/p><\/div>\n<div class=\"qs-d-note\" data-zone=\"mint\"><i class=\"fa-solid fa-life-ring\"><\/i><p>\u5982\u679c\u5176\u4e2d\u4efb\u4f55\u4e00\u70b9\u4e0e\u4f60\u6240\u770b\u5230\u7684\u4e0d\u7b26\uff0c\u8bf7\u505c\u6b62\u5e76 <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">\u56de\u590d\u6211\u4eec\u7684\u5ba2\u670d\u90ae\u4ef6<\/a> \u6211\u4eec\u4f1a\u9644\u4e0a\u5c4f\u5e55\u622a\u56fe\uff0c\u5e76\u4e00\u6b65\u6b65\u6307\u5bfc\u60a8\u5b8c\u6210\u64cd\u4f5c\u3002<\/p><\/div>\n\n<h3 id=\"postgresql\">PostgreSQL<\/h3>\n<p>\u4e00\u6761\u89c4\u5219 <strong>TCP 5432<\/strong>PostgreSQL \u8fd8\u4f1a\u62d2\u7edd\u5176\u4ed6\u8ba1\u7b97\u673a\u7684\u8bbf\u95ee\uff0c\u76f4\u5230\u5b83\u5728\u5176\u81ea\u8eab\u7684\u8bbe\u7f6e\u6587\u4ef6\u4e2d\u88ab\u544a\u77e5\u8981\u76d1\u542c\u8fd9\u4e9b\u8ba1\u7b97\u673a\u4e3a\u6b62\uff08<strong>postgresql.conf<\/strong> \u548c <strong>pg_hba.conf<\/strong>\uff09\uff1b\u5982\u679c\u4e0b\u9762\u7684\u7aef\u53e3\u6d4b\u8bd5\u6210\u529f\uff0c\u4f46\u8fde\u63a5\u4ecd\u7136\u5931\u8d25\uff0c\u90a3\u5c31\u662f\u4e0b\u4e00\u4e2a\u8981\u68c0\u67e5\u7684\u5730\u65b9\uff0c\u5b89\u88c5 PostgreSQL \u7684\u4eba\u4f1a\u77e5\u9053\u3002<\/p>\n\n<h3 id=\"mysql\">MySQL \u548c MariaDB<\/h3>\n<p>\u4e00\u6761\u89c4\u5219 <strong>TCP 3306<\/strong>\u5982\u679c\u4ee3\u7406\u4eba\u7684\u6d4b\u8bd5\u7ed3\u679c\u663e\u793a <strong>\u8fde\u63a5 MySQL \u670d\u52a1\u5668\u8d85\u65f6\uff0c\u5df2\u7b49\u5f85\u2026\u79d2\u3002\u670d\u52a1\u5668\u53ef\u80fd\u65e0\u6cd5\u8bbf\u95ee\uff0c\u6216\u8005\u7aef\u53e3\u53ef\u80fd\u88ab\u9632\u706b\u5899\u963b\u6b62\u3002<\/strong>\u8fd9\u6761\u89c4\u5219\u662f\u9996\u8981\u5acc\u7591\u5bf9\u8c61\u3002MySQL \u4e5f\u6709\u81ea\u5df1\u7684\u89c4\u5219\u3002 <strong>\u7ed1\u5b9a\u5730\u5740<\/strong> \u53ef\u4ee5\u5c06\u64cd\u4f5c\u9650\u5236\u5728\u670d\u52a1\u5668\u672c\u8eab\u3002<\/p>\n\n<h3 id=\"oracle\">\u7532\u9aa8\u6587<\/h3>\n<p>\u4e00\u6761\u89c4\u5219 <strong>TCP 1521<\/strong>\u8fde\u63a5\u5668\u8868\u5355\u4e2d\u663e\u793a\u7684\u9ed8\u8ba4\u76d1\u542c\u7aef\u53e3\u3002 <strong>TNS\uff1a\u8fde\u63a5\u8d85\u65f6<\/strong> \u6216 <strong>TNS\uff1a\u76ee\u6807\u4e3b\u673a\u4e0d\u53ef\u8fbe<\/strong> \u6d4b\u8bd5\u4e2d\u51fa\u73b0\u9519\u8bef\u901a\u5e38\u610f\u5473\u7740\u7f3a\u5c11\u8be5\u89c4\u5219\uff1b <strong>TNS\uff1a\u65e0\u76d1\u542c\u5668 \u2013 Oracle \u76d1\u542c\u5668\u53ef\u80fd\u672a\u8fd0\u884c<\/strong> \u8868\u793a\u7aef\u53e3\u53ef\u8fbe\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u7684\u76d1\u542c\u5668\u5df2\u505c\u6b62\u3002<\/p>\n\n<h2 id=\"test\">\u4ece\u4ee3\u7406\u8ba1\u7b97\u673a\u6d4b\u8bd5\u7aef\u53e3<\/h2>\n<p>\u8fd9\u5c31\u56de\u7b54\u4e86\u4e00\u4e2a\u95ee\u9898\uff1a\u4ee3\u7406\u7a0b\u5e8f\u6240\u5728\u7684\u8ba1\u7b97\u673a\u80fd\u5426\u8bbf\u95ee\u670d\u52a1\u5668\u4e0a\u7684\u90a3\u4e2a\u7aef\u53e3\uff1f\u8bf7\u5728\u5b89\u88c5\u4e86\u4ee3\u7406\u7a0b\u5e8f\u7684\u8ba1\u7b97\u673a\u4e0a\u8fd0\u884c\u8be5\u547d\u4ee4\uff0c\u800c\u4e0d\u662f\u5728\u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u3002<\/p>\n<ol class=\"qs-d-steps\" data-qs-seen=\"test\">\n  <li class=\"qs-d-step\" data-qs-step=\"1\" id=\"test-1\">\n    <h3>\u6253\u5f00 PowerShell<\/h3>\n    <p>\u5728\u7279\u5de5\u7684\u7535\u8111\u4e0a\uff0c\u70b9\u51fb <strong>\u5f00\u59cb<\/strong>\uff0c \u7c7b\u578b <strong>PowerShell<\/strong>\u7136\u540e\u70b9\u51fb <strong>Windows PowerShell<\/strong>\u4e00\u4e2a\u84dd\u8272\u6216\u9ed1\u8272\u7684\u7a97\u53e3\u6253\u5f00\uff0c\u7a97\u53e3\u5185\u6709\u4e00\u884c\u6587\u5b57\u4ee5\u2026\u2026\u7ed3\u5c3e\u3002 <strong>&gt;<\/strong>\u65e0\u9700\u7ba1\u7406\u5458\u6743\u9650\u3002<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"2\" id=\"test-2\">\n    <h3>\u8fd0\u884c\u6d4b\u8bd5<\/h3>\n    <p>\u8bf7\u5728\u4e0b\u65b9\u8f93\u5165\u60a8\u7684\u670d\u52a1\u5668\u540d\u79f0\u6216\u5730\u5740\uff0c\u800c\u4e0d\u662f <strong>\u529e\u516c\u5ba4\u670d\u52a1\u5668<\/strong> \u4ee5\u53ca\u60a8\u7684\u7aef\u53e3 <strong>1433<\/strong>\u7136\u540e\u6309 <strong>\u8fdb\u5165<\/strong>\u5bf9\u4e8e\u547d\u540d\u5b9e\u4f8b\uff0c\u53ea\u9700\u4f7f\u7528\u53cd\u659c\u6760\u4e4b\u524d\u7684\u90e8\u5206\uff0c\u4ee5\u53ca\u7aef\u53e3\u53f7\u3002 <a href=\"#named-3\">IPAll<\/a>.<\/p>\n    <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">\u8f93\u5165\u6b64\u5185\u5bb9\uff0c\u7136\u540e\u6309\u56de\u8f66\u952e\u3002<\/div>\n<pre class=\"qs-d-code__body\">Test-NetConnection -ComputerName OFFICE-SERVER -Port 1433<\/pre><\/div>\n    <p>\u7aef\u53e3\u88ab\u963b\u585e\u65f6\uff0c\u9700\u8981\u51e0\u79d2\u949f\u65f6\u95f4\uff0c\u6700\u591a\u534a\u5206\u949f\u5de6\u53f3\uff0c\u7136\u540e\u6253\u5370\u4e00\u4e2a\u7b80\u77ed\u7684\u5217\u8868\u3002<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"3\" id=\"test-3\">\n    <h3>\u9605\u8bfb\u6700\u540e\u4e00\u884c<\/h3>\n    <p><strong>TcpTestSucceeded\uff1aTrue<\/strong> \u8fd9\u610f\u5473\u7740\u7aef\u53e3\u5df2\u6253\u5f00\uff0c\u5e76\u4e14\u6709\u7a0b\u5e8f\u6b63\u5728\u76d1\u542c\u3002\u9632\u706b\u5899\u6ca1\u6709\u95ee\u9898\uff1b\u8fd4\u56de\u95e8\u6237\u5e76\u5355\u51fb <strong>\u6d4b\u8bd5\u8fde\u63a5<\/strong>\u5982\u679c\u4ecd\u7136\u5931\u8d25\uff0c\u5219\u8be5\u6d88\u606f\u4e0e\u767b\u5f55\u6216\u6570\u636e\u5e93\u6709\u5173\uff0c\u800c\u4e0d\u662f\u4e0e\u7f51\u7edc\u6709\u5173\u3002<\/p>\n    <p><strong>TcpTestSucceeded\uff1a\u5426<\/strong>\u901a\u5e38\u4e0a\u65b9\u4f1a\u6709\u4e00\u6761\u9ec4\u7ebf\uff0c\u4e0a\u9762\u5199\u7740\uff1a <strong>\u8b66\u544a\uff1aTCP \u8fde\u63a5\u5230 (\u2026 : 1433) \u5931\u8d25<\/strong>\u8868\u793a\u6ca1\u6709\u54cd\u5e94\u3002\u53ef\u80fd\u662f\u89c4\u5219\u7f3a\u5931\u6216\u9519\u8bef\uff0c\u6216\u8005\u6570\u636e\u5e93\u6ca1\u6709\u76d1\u542c\u8be5\u7aef\u53e3\uff1a <a href=\"#not-firewall\">\u68c0\u67e5\u4e00\u4e0b\u63a5\u4e0b\u6765<\/a>.<\/p>\n    <p><strong>OFFICE-SERVER \u7684\u540d\u79f0\u89e3\u6790\u5931\u8d25<\/strong>\u5982\u679c\u5b8c\u5168\u6ca1\u6709 TcpTestSucceeded \u884c\uff0c\u5219\u8868\u793a\u6b64\u8ba1\u7b97\u673a\u627e\u4e0d\u5230\u5177\u6709\u8be5\u540d\u79f0\u7684\u670d\u52a1\u5668\u3002\u8bf7\u68c0\u67e5\u62fc\u5199\uff0c\u6216\u6539\u7528\u670d\u52a1\u5668\u7684 IP \u5730\u5740\u3002<\/p>\n  <\/li>\n<\/ol>\n\n<h2 id=\"not-firewall\">\u5982\u679c\u4e0d\u662f\u9632\u706b\u5899\u7684\u95ee\u9898<\/h2>\n<p>\u5982\u679c\u6d4b\u8bd5\u7ed3\u679c\u663e\u793a <strong>\u9519\u8bef\u7684<\/strong> \u5373\u4f7f\u8bbe\u7f6e\u4e86\u8be5\u89c4\u5219\uff0c\u4e5f\u8bf7\u68c0\u67e5\u6570\u636e\u5e93\u662f\u5426\u786e\u5b9e\u6b63\u5728\u76d1\u542c\u8be5\u7aef\u53e3\u3002 <strong>\u6570\u636e\u5e93\u670d\u52a1\u5668<\/strong>\uff0c \u6253\u5f00 <strong>\u547d\u4ee4\u63d0\u793a\u7b26<\/strong> \uff08\u70b9\u51fb <strong>\u5f00\u59cb<\/strong>\uff0c \u7c7b\u578b <strong>\u547d\u4ee4<\/strong>\uff0c \u70b9\u51fb <strong>\u547d\u4ee4\u63d0\u793a\u7b26<\/strong>) \u5e76\u8f93\u5165\u60a8\u7684\u7aef\u53e3\u53f7\uff1a<\/p>\n<div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">\u8f93\u5165\u6b64\u5185\u5bb9\uff0c\u7136\u540e\u6309\u56de\u8f66\u952e\u3002<\/div>\n<pre class=\"qs-d-code__body\">netstat -an | findstr 1433<\/pre><\/div>\n<ul>\n  <li><strong>\u7c7b\u4f3c TCP 0.0.0.0:1433 0.0.0.0:0 LISTENING \u7684\u884c<\/strong> \u8fd9\u610f\u5473\u7740\u6570\u636e\u5e93\u6b63\u5728\u76d1\u542c\u6bcf\u53f0\u8ba1\u7b97\u673a\u3002\u9632\u706b\u5899\u89c4\u5219\uff08\u6216\u7b2c\u4e8c\u9053\u9632\u706b\u5899\uff0c\u4f8b\u5982\u9632\u75c5\u6bd2\u8f6f\u4ef6\u6216\u7f51\u7edc\u81ea\u5e26\u7684\u9632\u706b\u5899\uff09\u4f1a\u963b\u6b62\u5b83\uff1b\u8bf7\u68c0\u67e5\u89c4\u5219\u4e2d\u7684\u7aef\u53e3\u53f7\u3002<\/li>\n  <li><strong>\u4ec5 TCP 127.0.0.1:1433 \u2026 \u6b63\u5728\u76d1\u542c<\/strong> \u8fd9\u610f\u5473\u7740\u6570\u636e\u5e93\u4ec5\u76d1\u542c\u670d\u52a1\u5668\u672c\u8eab\u3002\u8fd9\u662f\u6570\u636e\u5e93\u8bbe\u7f6e\uff0c\u800c\u4e0d\u662f\u9632\u706b\u5899\u8bbe\u7f6e\uff1aSQL Server \u914d\u7f6e\u7ba1\u7406\u5668\u4e2d\u7684 TCP\/IP \u8bbe\u7f6e\u3002 <strong>\u76d1\u542c\u5730\u5740<\/strong> \u5bf9\u4e8e PostgreSQL \u800c\u8a00\uff0c <strong>\u7ed1\u5b9a\u5730\u5740<\/strong> \u9002\u7528\u4e8e MySQL \u548c MariaDB\u3002<\/li>\n  <li><strong>\u4ec0\u4e48\u90fd\u6ca1\u6709<\/strong> \u8fd9\u610f\u5473\u7740\u8be5\u7aef\u53e3\u4e0a\u6ca1\u6709\u4efb\u4f55\u670d\u52a1\u5728\u76d1\u542c\uff1a\u6570\u636e\u5e93\u670d\u52a1\u5df2\u505c\u6b62\u3001\u5b83\u4f7f\u7528\u4e86\u5176\u4ed6\u7aef\u53e3\uff0c\u6216\u8005\uff08SQL Server\uff09TCP\/IP \u5df2\u7981\u7528\u3002\u5bf9\u4e8e\u547d\u540d\u5b9e\u4f8b\uff0c\u8bf7\u8bfb\u53d6\u5b9e\u9645\u7aef\u53e3\u3002 <a href=\"#named-3\">IPAll<\/a>.<\/li>\n<\/ul>\n\n<h2 id=\"test-failed\">\u6d4b\u8bd5\u5931\u8d25\uff1f<\/h2>\n<table class=\"qs-d-table\">\n  <thead><tr><th>\u95e8\u6237\u7f51\u7ad9\u6d88\u606f<\/th><th>\u539f\u56e0<\/th><th>\u4f7f\u56fa\u5b9a<\/th><\/tr><\/thead>\n  <tbody>\n    <tr><td><strong>\u8fde\u63a5\u5931\u8d25\uff1a\u7aef\u53e3 1433 \u6ca1\u6709\u54cd\u5e94\u3002SQL Server \u672a\u76d1\u542c\u8be5\u7aef\u53e3\uff0c\u6216\u8005\u4ee3\u7406\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u9632\u706b\u5899\u963b\u6b62\u4e86\u8be5\u7aef\u53e3\u3002<\/strong><\/td><td>\u9632\u706b\u5899\u89c4\u5219\u7f3a\u5931\uff0c\u6216\u8005 SQL Server \u7684 TCP\/IP \u529f\u80fd\u5df2\u5173\u95ed\u3002<\/td><td><a href=\"#add-rule\">\u6dfb\u52a0\u89c4\u5219<\/a>\u7136\u540e <a href=\"#test\">\u6d4b\u8bd5\u7aef\u53e3<\/a> \u548c <a href=\"#not-firewall\">\u68c0\u67e5\u4e00\u4e0b\u5b83\u662f\u5426\u5728\u76d1\u542c\u3002<\/a>.<\/td><\/tr>\n    <tr><td><strong>\u8fde\u63a5\u5931\u8d25\uff1a\u5728 \u2026 \u4e0a\u627e\u4e0d\u5230\u5b9e\u4f8b\u201c\u2026\u201d\u3002<\/strong><\/td><td>\u547d\u540d\u5b9e\u4f8b\uff1a\u6d4f\u89c8\u5668\u5df2\u505c\u6b62\uff0cUDP 1434 \u6216\u5b9e\u4f8b\u7aef\u53e3\u88ab\u963b\u6b62\uff0c\u6216\u8005 TCP\/IP \u5df2\u5173\u95ed\u3002<\/td><td><a href=\"#sql-named\">\u547d\u540d\u5b9e\u4f8b\u548c SQL Express<\/a>\u5168\u90e8\u516d\u4e2a\u6b65\u9aa4\u3002<\/td><\/tr>\n    <tr><td><strong>\u8fde\u63a5 MySQL \u670d\u52a1\u5668\u8d85\u65f6\uff0c\u5df2\u7b49\u5f85\u2026\u79d2\u3002\u670d\u52a1\u5668\u53ef\u80fd\u65e0\u6cd5\u8bbf\u95ee\uff0c\u6216\u8005\u7aef\u53e3\u53ef\u80fd\u88ab\u9632\u706b\u5899\u963b\u6b62\u3002<\/strong><\/td><td>TCP 3306 \u7aef\u53e3\u88ab\u963b\u6b62\uff0c\u6216\u8005 MySQL \u4ec5\u76d1\u542c\u672c\u5730\u7aef\u53e3\u3002<\/td><td><a href=\"#mysql\">MySQL \u548c MariaDB<\/a>\u7136\u540e <a href=\"#not-firewall\">\u68c0\u67e5\u4e00\u4e0b\u5b83\u662f\u5426\u5728\u76d1\u542c\u3002<\/a>.<\/td><\/tr>\n    <tr><td><strong>TNS\uff1a\u8fde\u63a5\u8d85\u65f6<\/strong> \u6216 <strong>TNS\uff1a\u76ee\u6807\u4e3b\u673a\u4e0d\u53ef\u8fbe<\/strong><\/td><td>TCP 1521 \u88ab\u963b\u6b62\uff0c\u6216\u8005\u670d\u52a1\u5668\u9519\u8bef\u3002<\/td><td><a href=\"#oracle\">\u7532\u9aa8\u6587<\/a>\u7136\u540e <a href=\"#test\">\u6d4b\u8bd5\u7aef\u53e3<\/a>.<\/td><\/tr>\n    <tr><td>\u4e00\u6761 PostgreSQL \u6d88\u606f\u63d0\u5230 <strong>\u8fde\u63a5\u5931\u8d25<\/strong> \u548c <strong>5432<\/strong><\/td><td>TCP 5432 \u7aef\u53e3\u88ab\u963b\u6b62\uff0c\u6216\u8005 PostgreSQL \u4ec5\u76d1\u542c\u672c\u5730\u7aef\u53e3\u3002<\/td><td><a href=\"#postgresql\">PostgreSQL<\/a>\u7136\u540e <a href=\"#not-firewall\">\u68c0\u67e5\u4e00\u4e0b\u5b83\u662f\u5426\u5728\u76d1\u542c\u3002<\/a>.<\/td><\/tr>\n  <\/tbody>\n<\/table>\n<p>\u51fa\u73b0\u6709\u5173\u767b\u5f55\u540d\u3001\u5bc6\u7801\u6216\u6570\u636e\u5e93\u540d\u79f0\u7684\u6d88\u606f\u8868\u793a\u7f51\u7edc\u90e8\u5206\u5df2\u7ecf\u6b63\u5e38\u5de5\u4f5c\uff1b\u6b64\u9875\u9762\u65e0\u6cd5\u4fee\u590d\u8fd9\u4e9b\u95ee\u9898\u3002 <a href=\"https:\/\/querystreams.com\/zh\/docs\/create-a-read-only-database-user\/\" data-qs-cta=\"related\">\u521b\u5efa\u4e00\u4e2a\u53ea\u8bfb\u6570\u636e\u5e93\u7528\u6237<\/a> \u6db5\u76d6\u767b\u5f55\u65b9\u9762\u3002<\/p>\n\n<div class=\"qs-d-support qs-d-support--foot\" data-zone=\"mint\" data-qs-seen=\"support\"><span class=\"qs-d-chip\"><i class=\"fa-solid fa-life-ring\"><\/i><\/span><div class=\"qs-d-support__body\"><strong>\u8fd8\u662f\u4e0d\u884c\uff1f<\/strong> \u6253\u5f00 <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">\u652f\u6301<\/a> \u8bf7\u5728\u201cQuery Streams\u201d\u4e2d\u544a\u8bc9\u6211\u4eec\u60a8\u5f53\u524d\u5904\u4e8e\u7b2c\u51e0\u6b65\u4ee5\u53ca\u60a8\u770b\u5230\u7684\u5185\u5bb9\u3002\u6211\u4eec\u4f1a\u5e2e\u60a8\u8fde\u63a5\u3002<\/div><\/div>\n\n<h2 id=\"related\">\u76f8\u5173\u6307\u5357<\/h2>\n<ul class=\"qs-d-related\">\n  <li><a href=\"https:\/\/querystreams.com\/zh\/docs\/create-a-read-only-database-user\/\" data-qs-cta=\"related\">\u521b\u5efa\u4e00\u4e2a\u53ea\u8bfb\u6570\u636e\u5e93\u7528\u6237<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/zh\/docs\/is-the-agent-online\/\" data-qs-cta=\"related\">\u7ecf\u7eaa\u4eba\u5728\u7ebf\u5417\uff1f<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/zh\/docs\/%e5%a6%82%e4%bd%95%e5%b0%86microsoft-sql-server%e8%bf%9e%e6%8e%a5%e5%88%b0excel\/\" data-qs-cta=\"related\">Microsoft SQL Server \u5230 Excel<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/zh\/docs\/how-to-connect-postgresql-to-excel\/\" data-qs-cta=\"related\">PostgreSQL \u5230 Excel<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/zh\/docs\/how-to-connect-mysql-to-microsoft-excel\/\" data-qs-cta=\"related\">MySQL \u81f3 Excel<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/zh\/docs\/%e5%a6%82%e4%bd%95%e5%b0%86oracle%e8%bf%9e%e6%8e%a5%e5%88%b0excel\/\" data-qs-cta=\"related\">Oracle \u5230 Excel<\/a><\/li>\n  <li><a href=\"https:\/\/learn.microsoft.com\/en-us\/sql\/sql-server\/install\/configure-the-windows-firewall-to-allow-sql-server-access\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"ms_docs\">Microsoft\uff1a\u914d\u7f6e Windows \u9632\u706b\u5899\u4ee5\u5141\u8bb8 SQL Server \u8bbf\u95ee<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/zh\/docs\/\" data-qs-cta=\"related\">\u6240\u6709\u6307\u5357<\/a><\/li>\n<\/ul>\n<\/article>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"doc_category":[33],"doc_tag":[],"class_list":["post-7297","docs","type-docs","status-publish","hentry","doc_category-connector-setup"],"year_month":"2026-12","word_count":2362,"total_views":"80","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"\u7cfb\u7edf","author_nicename":"systemz","author_url":"https:\/\/querystreams.com\/zh\/author\/systemz\/"},"doc_category_info":[{"term_name":"Data Connector Setup","term_url":"https:\/\/querystreams.com\/zh\/docs-category\/connector-setup\/"}],"doc_tag_info":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false,"betterdocs-category-thumb":false},"uagb_author_info":{"display_name":"systemz","author_link":"https:\/\/querystreams.com\/zh\/author\/systemz\/"},"uagb_comment_info":0,"uagb_excerpt":null,"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/docs\/7297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/comments?post=7297"}],"version-history":[{"count":1,"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/docs\/7297\/revisions"}],"predecessor-version":[{"id":7994,"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/docs\/7297\/revisions\/7994"}],"wp:attachment":[{"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/media?parent=7297"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/doc_category?post=7297"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/doc_tag?post=7297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}