{"id":130862,"date":"2023-04-06T21:52:59","date_gmt":"2023-04-06T13:52:59","guid":{"rendered":"http:\/\/www.idc.net\/help\/130862\/"},"modified":"2023-04-06T21:52:59","modified_gmt":"2023-04-06T13:52:59","slug":"%e8%bd%af%e4%bb%b6%e5%88%9b%e5%bb%ba%e6%95%b0%e6%8d%ae%e5%ba%93%e5%a4%b1%e8%b4%a5%ef%bc%9f%e5%8e%9f%e5%9b%a0%e5%88%86%e6%9e%90%e5%8f%8a%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88-%e8%bd%af%e4%bb%b6%e5%88%9b","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/130862\/","title":{"rendered":"\u8f6f\u4ef6\u521b\u5efa\u6570\u636e\u5e93\u5931\u8d25\uff1f\u539f\u56e0\u5206\u6790\u53ca\u89e3\u51b3\u65b9\u6848 (\u8f6f\u4ef6\u521b\u5efa\u6570\u636e\u5e93\u5931\u8d25\u600e\u4e48\u56de\u4e8b)"},"content":{"rendered":"<p>\u968f\u7740\u4e92\u8054\u7f51\u7684\u4e0d\u65ad\u53d1\u5c55\u548c\u666e\u53ca\uff0c\u6570\u636e\u5e93\u5df2\u7ecf\u6210\u4e3a\u4e86\u73b0\u4ee3\u793e\u4f1a\u4fe1\u606f\u6280\u672f\u91cd\u8981\u7684\u6740\u624b\u950f\u4e4b\u4e00\u3002\u4ece\u5404\u79cd\u4f01\u4e1a\u3001\u673a\u5173\uff0c\u5230\u4e2a\u4eba\u7528\u6237\uff0c\u65e0\u4e0d\u6d89\u53ca\u5230\u6570\u636e\u5e93\u7684\u4f7f\u7528\u3002\u56e0\u6b64\uff0c\u4e00\u4e2a\u597d\u7684\u6570\u636e\u5e93\u7ba1\u7406\u8f6f\u4ef6\u4e0d\u4ec5\u4e3a\u7528\u6237\u8282\u7701\u4e86\u65f6\u95f4\u548c\u6210\u672c\uff0c\u4e5f\u63d0\u9ad8\u4e86\u6570\u636e\u7684\u5b89\u5168\u6027\u548c\u53ef\u9760\u6027\u3002\u4f46\u662f\uff0c\u5728\u4f7f\u7528\u6570\u636e\u5e93\u7ba1\u7406\u8f6f\u4ef6\u521b\u5efa\u6570\u636e\u5e93\u7684\u8fc7\u7a0b\u4e2d\uff0c\u7531\u4e8e\u5404\u79cd\u539f\u56e0\uff0c\u51fa\u73b0\u521b\u5efa\u6570\u636e\u5e93\u5931\u8d25\u7684\u60c5\u51b5\uff0c\u8fd9\u65f6\u5c31\u9700\u8981\u8fdb\u884c\u539f\u56e0\u5206\u6790\uff0c\u5e76\u7ed9\u51fa\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<p>\u4e00\u3001\u521b\u5efa\u6570\u636e\u5e93\u5931\u8d25\u539f\u56e0\u5206\u6790<\/p>\n<p>1. \u6ca1\u6709\u9002\u5f53\u7684\u6743\u9650<\/p>\n<p>\u8fd9\u79cd\u60c5\u51b5\u5728\u64cd\u4f5c\u7cfb\u7edf\u8f83\u9ad8\u7684\u73af\u5883\u4e2d\u6bd4\u8f83\u5e38\u89c1\uff0c\u56e0\u4e3a\u5728\u8f83\u9ad8\u7684\u73af\u5883\u4e2d\uff0c\u4e3a\u4fdd\u969c\u7cfb\u7edf\u7684\u5b89\u5168\u6027\uff0c\u7528\u6237\u53ef\u80fd\u9700\u8981\u767b\u5f55\u5230\u7ba1\u7406\u5458\u8d26\u53f7\u4e0b\u624d\u80fd\u591f\u521b\u5efa\u65b0\u7684\u6570\u636e\u5e93\u3002\u5982\u679c\u4f7f\u7528\u4f4e\u6743\u9650\u8d26\u53f7\u521b\u5efa\u6570\u636e\u5e93\uff0c\u5219\u4f1a\u5bfc\u81f4\u521b\u5efa\u5931\u8d25\u3002<\/p>\n<p>2. \u6570\u636e\u5e93\u5df2\u7ecf\u5b58\u5728<\/p>\n<p>\u5728\u521b\u5efa\u6570\u636e\u5e93\u65f6\uff0c\u65f6\u5e38\u4f1a\u5fd8\u8bb0\u662f\u5426\u5df2\u7ecf\u521b\u5efa\u8fc7\u76f8\u540c\u540d\u5b57\u7684\u6570\u636e\u5e93\u4e86\uff0c\u800c\u518d\u6b21\u5bf9\u540c\u4e00\u4e2a\u6570\u636e\u5e93\u8fdb\u884c\u521b\u5efa\uff0c\u5c31\u4f1a\u5bfc\u81f4\u521b\u5efa\u5931\u8d25\u3002<\/p>\n<p>3. \u6570\u636e\u5e93\u9519\u8bef<\/p>\n<p>\u5982\u679c\u5728\u521b\u5efa\u6570\u636e\u5e93\u65f6\u51fa\u73b0\u9519\u8bef\uff0c\u4f8b\u5982\u635f\u574f\uff0c\u6216\u8005\u5728\u8fdb\u884c\u67d0\u4e9b\u64cd\u4f5c\u65f6\u51fa\u73b0\u95ee\u9898\uff0c\u90a3\u4e48\u5c31\u6709\u53ef\u80fd\u5bfc\u81f4\u521b\u5efa\u6570\u636e\u5e93\u5931\u8d25\u7684\u60c5\u51b5\u51fa\u73b0\u3002<\/p>\n<p>4. \u5b58\u50a8\u8bbe\u5907\u95ee\u9898<\/p>\n<p>\u6570\u636e\u5e93\u7ba1\u7406\u8f6f\u4ef6\u9700\u8981\u5c06\u6570\u636e\u5b58\u50a8\u5728\u7528\u6237\u6307\u5b9a\u7684\u8bbe\u5907\u4e2d\uff0c\u4f8b\u5982\u786c\u76d8\u6216\u95ea\u5b58\uff0c\u5982\u679c\u5b58\u50a8\u8bbe\u5907\u51fa\u73b0\u95ee\u9898\uff0c\u4f8b\u5982\u5bb9\u91cf\u4e0d\u8db3\u6216\u4e0d\u7a33\u5b9a\uff0c\u5c31\u4f1a\u5bfc\u81f4\u521b\u5efa\u6570\u636e\u5e93\u64cd\u4f5c\u5931\u8d25\u3002<\/p>\n<p>\u4e8c\u3001\u89e3\u51b3\u65b9\u6848<\/p>\n<p>1. \u9002\u5f53\u63d0\u9ad8\u6743\u9650<\/p>\n<p>\u5982\u679c\u521b\u5efa\u6570\u636e\u5e93\u7684\u6743\u9650\u4e0d\u591f\uff0c\u5219\u9700\u8981\u5728\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u5207\u6362\u5230\u5177\u6709\u9ad8\u6743\u9650\u7684\u8d26\u53f7\u4e0b\u8fdb\u884c\u521b\u5efa\u3002\u4f8b\u5982\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u53f3\u51fb\u8f6f\u4ef6\u7684\u56fe\u6807\u542f\u52a8\u201c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u201d\u6765\u8fdb\u884c\u3002<\/p>\n<p>2. \u786e\u8ba4\u6570\u636e\u5e93\u662f\u5426\u5b58\u5728<\/p>\n<p>\u5728\u521b\u5efa\u6570\u636e\u5e93\u524d\uff0c\u8981\u786e\u8ba4\u8be5\u6570\u636e\u5e93\u662f\u5426\u5df2\u7ecf\u88ab\u521b\u5efa\u8fc7\uff0c\u5982\u679c\u5b58\u5728\uff0c\u5219\u9700\u8981\u5220\u9664\u8be5\u6570\u636e\u5e93\u540e\u91cd\u65b0\u521b\u5efa\u3002\u5728\u67d0\u4e9b\u8f6f\u4ef6\u4e2d\uff0c\u5982\u679c\u51fa\u73b0\u540c\u540d\u6570\u636e\u5e93\uff0c\u4e5f\u4f1a\u81ea\u52a8\u63d0\u793a\u662f\u5426\u9700\u8981\u66ff\u6362\u6389\u539f\u6709\u7684\u6570\u636e\u5e93\u3002<\/p>\n<p>3. \u68c0\u6d4b\u5e76\u4fee\u590d\u6570\u636e\u5e93\u9519\u8bef<\/p>\n<p>\u5982\u679c\u6570\u636e\u5e93\u51fa\u73b0\u95ee\u9898\uff0c\u9700\u8981\u8fdb\u884c\u68c0\u6d4b\u4e0e\u4fee\u590d\u3002\u6709\u4e00\u4e9b\u6570\u636e\u5e93\u7ba1\u7406\u8f6f\u4ef6\u5185\u7f6e\u4e86\u81ea\u52a8\u68c0\u6d4b\u4e0e\u4fee\u590d\u529f\u80fd\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u8be5\u529f\u80fd\u6765\u89e3\u51b3\u6570\u636e\u5e93\u6545\u969c\u95ee\u9898\u3002\u5982\u679c\u6ca1\u6709\u81ea\u52a8\u68c0\u6d4b\u4e0e\u4fee\u590d\u529f\u80fd\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u8f93\u5165\u201cCHKDSK\u201d\u6765\u8fdb\u884c\u68c0\u6d4b\u4fee\u590d\u3002<\/p>\n<p>4. \u66f4\u6362\u5b58\u50a8\u8bbe\u5907<\/p>\n<p>\u5982\u679c\u5b58\u50a8\u8bbe\u5907\u5bb9\u91cf\u4e0d\u8db3\uff0c\u9700\u8981\u66f4\u6362\u66f4\u5927\u5bb9\u91cf\u7684\u8bbe\u5907\u3002\u5982\u679c\u5b58\u50a8\u8bbe\u5907\u4e0d\u7a33\u5b9a\uff0c\u5219\u9700\u8981\u66f4\u6362\u53ef\u9760\u6027\u66f4\u9ad8\u7684\u8bbe\u5907\uff0c\u4f8b\u5982\u91c7\u7528\u66f4\u9ad8\u8d28\u91cf\u7684\u786c\u76d8\u3002\u540c\u65f6\uff0c\u4e3a\u4e86\u907f\u514d\u5b58\u50a8\u8bbe\u5907\u51fa\u73b0\u95ee\u9898\uff0c\u66f4\u597d\u5b9a\u671f\u5bf9\u5b58\u50a8\u8bbe\u5907\u8fdb\u884c\u5907\u4efd\u3002<\/p>\n<p>\u603b\u800c\u8a00\u4e4b\uff0c\u901a\u8fc7\u5bf9\u521b\u5efa\u6570\u636e\u5e93\u5931\u8d25\u7684\u539f\u56e0\u8fdb\u884c\u5206\u6790\uff0c\u5e76\u7ed9\u51fa\u5408\u9002\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u7684\u7ba1\u7406\u548c\u7ef4\u62a4\u6570\u636e\u5e93\uff0c\u4fdd\u969c\u6570\u636e\u5e93\u7684\u5b89\u5168\u548c\u53ef\u9760\u6027\u3002<\/p>\n<p><strong>\u76f8\u5173\u95ee\u9898\u62d3\u5c55\u9605\u8bfb\uff1a<\/strong><\/p>\n<ul>\n<li>SQL SERVER 2023 \u65b0\u5efa\u6570\u636e\u5e93\u5931\u8d25\uff08\u53ea\u80fd\u5efa\u7acb\u5728\u9ed8\u8ba4\u6587\u4ef6\u5939\uff09<\/li>\n<\/ul>\n<h3>SQL SERVER 2023 \u65b0\u5efa\u6570\u636e\u5e93\u5931\u8d25\uff08\u53ea\u80fd\u5efa\u7acb\u5728\u9ed8\u8ba4\u6587\u4ef6\u5939\uff09<\/h3>\n<p>\u90a3\u4e2a\u5ff5\u731b\u3002\u3002\u3002\u3002<\/p>\n<p>\u4f60\u662f\u7528\u547d\u4ee4\u5efa\u7684\u6570\u636e\u5e93\u5417\uff0c<\/p>\n<p>\u5982\u679c\u4e0d\u662f\u4f60\u53ef\u4ee5\u7528\u4e00\u4e0b\uff0c<\/p>\n<p>\u70b9<\/p>\n<p>\u65b0\u5efa\u67e5\u8be2<\/p>\n<p>create<\/p>\n<p>database<\/p>\n<p>student<\/p>\n<p>\u2013\u6211\u5efa\u7684\u662f\u5b66\u751f\u5e93<\/p>\n<p>on<\/p>\n<p>primary<\/p>\n<p>(<\/p>\n<p>name=\u2019student_primary\u2019,<\/p>\n<p>filename=\u2019F:\\\u6570\u636e\u5e93\\sql\\stu.mdf\u2019,\u2013\u8fd9\u91cc\u662f\u5e93\u7684\u6240\u5728\u76d8\uff0c\u6211\u5efa\u5728F\u76d8\uff0c\u6570\u636e\u5e93\u6587\u4ef6\u5939\u4e0b\uff0csql\u6587\u4ef6\u5939\u91cc\uff0c\u540d\u4e3a<\/p>\n<p>stu.mdf<\/p>\n<p>\u6ce8\u7b54\u6094:\u4f60\u5fc5\u987b\u5728F\u76d8\u5185\u5148\u5efa\u4e00\u4e2a\u6570\u636e\u5e93\u6587\u4ef6\u5939,\u91cc\u9762\u5fc5\u987b\u6709sql\u6587\u4ef6\u5939,\u5426\u5219\u547d\u4ee4\u4e0d\u80fd\u6267\u884c.<\/p>\n<p>size=5,<\/p>\n<p>filegrowth=30%<\/p>\n<p>)<\/p>\n<p>log<\/p>\n<p>on<\/p>\n<p>(<\/p>\n<p>name=\u2019student_log\u2019,<\/p>\n<p>filename=\u2019F:\\\u4ed4\u4e3e\u6865\u4e2d\u548c\u6570\u636e\u5e93\\sql\\stu.ldf\u2019,\u2013\u6b64\u5904\u540c\u4e0a,\u6ce8:\u540e\u7f00\u540d\u4e3a.ldf<\/p>\n<p>size=1,<\/p>\n<p>filegrowth=30%<\/p>\n<p>)<\/p>\n<p>use<\/p>\n<p>student<\/p>\n<p>\u8fd8\u6709\uff0c\u4e0d\u8981\u5c06\u6570\u636e\u5e93\u5efa\u5728f\u76d8\u4e0b\uff0c\u90a3\u6837\u4ee5\u540e\u5c31\u9ebb\u70e6\u4e86\uff0c\u66f4\u597d\u5efa\u4e2a\u6587\u5efa\u5939<\/p>\n<p>\u51fa\u73b0\u8fd9\u4e2a\u95ee\u9898\u7684\u53ef\u80fd\u539f\u56e0\uff1a<\/p>\n<p>1.<\/p>\n<p>\u4f60\u6307\u5b9a\u7684\u8def\u5f84\u6e17\u8304\u201cF:\\\u201d\u6839\u672c\u4e0d\u5b58\u5728\uff1b<\/p>\n<p>2.<\/p>\n<p>\u4f60\u6ca1\u6709\u5728\u521b\u5efa\u6570\u636e\u5e93\u7684\u8bed\u53e5\u4e2d\u6307\u5b9a\u8981\u5b58\u966a\u558a\u5e76\u653e\u7684\u8def\u5f84\uff0c\u5728\u4e00\u4e2a\u975e\u96c6\u6210\u7684\u73af\u5883\u4e2d\uff08\u4f60\u8fd9\u4e2a\u73af\u5883\u5c31\u662f\uff09\u5b58\u653e\u7684\u8def\u5f84\u5e94\u8bbe\u7f6e\u5728\u672c\u5730\u78c1\u76d8\u4e0a\uff1b<\/p>\n<p>3.<\/p>\n<p>\u4f60\u7684F\u76d8\u6ca1\u6709\u7ed9SQL<\/p>\n<p>Server\u4ee5\u5199\u7684\u6743\u9650\uff1b<\/p>\n<p>4.<\/p>\n<p>\u4f60\u8bbe\u7f6e\u7684\u6587\u4ef6\u540d\u662f\u975e\u6cd5\u7684\u3002<\/p>\n<p>\u4f60\u5c1d\u8bd5\u7740\u5728F\u76d8\u521b\u5efa\u4e00\u4e2a\u5176\u4ed6\u7684\u6587\u4ef6\uff0c\u6bd4\u5982txt\uff0c\u770b\u80fd\u6210\u529f\u4e0d\uff0c\u82e5\u4e0d\u6210\u529f\uff0c\u5219\u4f60\u521b\u5efa\u82a6\u8ff9\u6570\u636e\u5e93\u4e5f\u5fc5\u7136\u4f1a\u5931\u8d25\u3002<\/p>\n<p>LZ\u554a\uff0c\u6211\u770b\u4e86\u4f60\u7684\u5e16\u5b50\u770b\u4e86\u5f88\u4e45\uff0c\u53d1\u73b0\u4e00\u4e2a\u95ee\u9898\uff1a<\/p>\n<p>\u4f60\u88c5\u7684\u662fSQL<\/p>\n<p>Server\u5f00\u53d1\u7248\uff0c\u4f46\u662f\u4eae\u6398management<\/p>\n<p>studio\u7528\u7684\u662fexpress\u7248\u3002<\/p>\n<p>\u5982\u679c\u4f60\u786e\u5b9a\u4f60\u6ca1\u63cf\u8ff0\u9519\u7684\u8bdd\uff0c\u6211\u89c9\u5f97\u95ee\u9898\u5c31\u5728\u8fd9\u91cc\u4e86\uff1a\u5982\u679c\u4f60\u786e\u5b9a\u88c5\u7684\u6bd5\u853d\u662f\u201c\u5f00\u53d1\u7248\u201d\u7684\u8bdd\uff0c\u5e76\u4e14\u88c5\u5b8c\u6574\u4e86\u7684\u8bdd\uff0c\u90a3\u4f60\u7684management<\/p>\n<p>studio\u5c31\u4e0d\u5e94\u8be5\u5e26\u201cexpress\u201d\u7684\u540e\u7f00\u3002<\/p>\n<p>\u6211\u731c\u4f60\u662f\u5148\u88c5\u7684\u5f00\u53d1\u7248\uff0c\u540e\u6765\u53c8\u5355\u72ec\u4e0b\u8f7d\u4e86\u4e00\u4e2aexpress\u7248\u7684management<\/p>\n<p>studio\u3002<\/p>\n<p>\u5efa\u8bae\u4f60\u68c0\u67e5\u4e00\u4e0b\uff0c\u201c\u5f00\u53d1\u7248\u201d\u662f\u4e0d\u662f\u88c5\u5b8c\u6574\u4e86\uff0c\u5982\u679c\u662f\u7684\u8bdd\uff0c\u5c31\u5220\u6389express\u7248\u7684management<\/p>\n<p>studio\uff0c\u7528\u201c\u5f00\u53d1\u7248\u201d\u81ea\u5e26\u7684management<\/p>\n<p>studio\uff0c\u5e94\u8be5\u80fd\u89e3\u51b3\u95ee\u656c\u6570\u6838\u9898\u3002<\/p>\n<p>\u5173\u4e8e\u8f6f\u4ef6\u521b\u5efa\u6570\u636e\u5e93\u5931\u8d25\u600e\u4e48\u56de\u4e8b\u7684\u4ecb\u7ecd\u5230\u6b64\u5c31\u7ed3\u675f\u4e86\uff0c\u4e0d\u77e5\u9053\u4f60\u4ece\u4e2d\u627e\u5230\u4f60\u9700\u8981\u7684\u4fe1\u606f\u4e86\u5417 \uff1f\u5982\u679c\u4f60\u8fd8\u60f3\u4e86\u89e3\u66f4\u591a\u8fd9\u65b9\u9762\u7684\u4fe1\u606f\uff0c\u8bb0\u5f97\u6536\u85cf\u5173\u6ce8\u672c\u7ad9\u3002<\/p>\n<p><a href=\"http:https:\/\/idc.net\/\">\u9999\u6e2f\u670d\u52a1\u5668<\/a>\u9996\u9009\u540e\u6d6a\u4e91\uff0c2H2G\u9996\u670810\u5143\u5f00\u901a\u3002<br \/>\u540e\u6d6a\u4e91\uff08www.IDC.Net\uff09\u63d0\u4f9b\u7b80\u5355\u597d\u7528\uff0c\u4ef7\u683c\u539a\u9053\u7684\u9999\u6e2f\/\u7f8e\u56fd\u4e91\u670d\u52a1\u5668\u548c\u72ec\u7acb\u670d\u52a1\u5668\u3002IDC+ISP+ICP\u8d44\u8d28\u3002ARIN\u548cAPNIC\u4f1a\u5458\u3002\u6210\u719f\u6280\u672f\u56e2\u961f15\u5e74\u884c\u4e1a\u7ecf\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u968f\u7740\u4e92\u8054\u7f51\u7684\u4e0d\u65ad\u53d1\u5c55\u548c\u666e\u53ca\uff0c\u6570\u636e\u5e93\u5df2\u7ecf\u6210\u4e3a\u4e86\u73b0\u4ee3\u793e\u4f1a\u4fe1\u606f\u6280\u672f\u91cd\u8981\u7684\u6740\u624b\u950f\u4e4b\u4e00\u3002\u4ece\u5404\u79cd\u4f01\u4e1a\u3001\u673a\u5173\uff0c\u5230\u4e2a\u4eba\u7528\u6237\uff0c\u65e0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7038],"tags":[],"class_list":["post-130862","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/130862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=130862"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/130862\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=130862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=130862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=130862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}