{"id":53705,"date":"2024-10-09T13:33:15","date_gmt":"2024-10-09T05:33:15","guid":{"rendered":"https:\/\/server.hk\/cnblog\/53705\/"},"modified":"2024-10-09T13:33:16","modified_gmt":"2024-10-09T05:33:16","slug":"win2003-iismysql-%e6%9c%8d%e5%8b%99%e7%ae%a1%e7%90%86%e5%8a%a9%e6%89%8b","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/53705\/","title":{"rendered":"Win2003 IIS+MySQL \u670d\u52d9\u7ba1\u7406\u52a9\u624b"},"content":{"rendered":"<h1 id=\"win2003-iismysql-%e6%9c%8d%e5%8b%99%e7%ae%a1%e7%90%86%e5%8a%a9%e6%89%8b-LMCBDGDadN\">Win2003 IIS+MySQL \u670d\u52d9\u7ba1\u7406\u52a9\u624b<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u7db2\u7d61\u74b0\u5883\u4e2d\uff0cWindows Server 2003\uff08Win2003\uff09\u4ecd\u7136\u88ab\u4e00\u4e9b\u4f01\u696d\u548c\u958b\u767c\u8005\u4f7f\u7528\uff0c\u7279\u5225\u662f\u5728\u904b\u884cIIS\uff08Internet Information Services\uff09\u548cMySQL\u6578\u64da\u5eab\u7684\u74b0\u5883\u4e2d\u3002\u5118\u7ba1\u9019\u500b\u64cd\u4f5c\u7cfb\u7d71\u5df2\u7d93\u904e\u6642\uff0c\u4f46\u5c0d\u65bc\u67d0\u4e9b\u7279\u5b9a\u61c9\u7528\u5834\u666f\uff0c\u4ecd\u7136\u6709\u5176\u5b58\u5728\u7684\u50f9\u503c\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u5982\u4f55\u5728Win2003\u4e0a\u6709\u6548\u7ba1\u7406IIS\u548cMySQL\u670d\u52d9\uff0c\u4e26\u63d0\u4f9b\u4e00\u4e9b\u5be6\u7528\u7684\u7ba1\u7406\u52a9\u624b\u5de5\u5177\u548c\u6280\u5de7\u3002<\/p>\n<h2 id=\"iis%e7%9a%84%e5%9f%ba%e6%9c%ac%e9%85%8d%e7%bd%ae-LMCBDGDadN\">IIS\u7684\u57fa\u672c\u914d\u7f6e<\/h2>\n<p>IIS\u662f\u5fae\u8edf\u63d0\u4f9b\u7684\u7db2\u9801\u4f3a\u670d\u5668\uff0c\u80fd\u5920\u652f\u6301ASP.NET\u3001PHP\u7b49\u591a\u7a2e\u6280\u8853\u3002\u8981\u5728Win2003\u4e0a\u914d\u7f6eIIS\uff0c\u9996\u5148\u9700\u8981\u78ba\u4fddIIS\u5df2\u7d93\u5b89\u88dd\u3002\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u5b89\u88dd\uff1a<\/p>\n<ol>\n<li>\u6253\u958b\u201c\u63a7\u5236\u9762\u677f\u201d\u3002<\/li>\n<li>\u9078\u64c7\u201c\u6dfb\u52a0\u6216\u522a\u9664\u7a0b\u5e8f\u201d\u3002<\/li>\n<li>\u9ede\u64ca\u201c\u6dfb\u52a0\/\u522a\u9664Windows\u7d44\u4ef6\u201d\u3002<\/li>\n<li>\u5728\u7d44\u4ef6\u5217\u8868\u4e2d\u9078\u64c7\u201c\u7db2\u7d61\u670d\u52d9\u201d\uff0c\u7136\u5f8c\u52fe\u9078\u201cIIS\u201d\u3002<\/li>\n<\/ol>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u53ef\u4ee5\u901a\u904e\u201c\u7ba1\u7406\u5de5\u5177\u201d\u4e2d\u7684\u201cIIS\u7ba1\u7406\u5668\u201d\u4f86\u914d\u7f6e\u7db2\u7ad9\u548c\u61c9\u7528\u7a0b\u5e8f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u57fa\u672c\u7684\u914d\u7f6e\u6b65\u9a5f\uff1a<\/p>\n<ul>\n<li>\u5275\u5efa\u65b0\u7db2\u7ad9\uff1a\u53f3\u9375\u9ede\u64ca\u201c\u7db2\u7ad9\u201d\uff0c\u9078\u64c7\u201c\u65b0\u5efa\u7db2\u7ad9\u201d\uff0c\u7136\u5f8c\u6309\u7167\u5411\u5c0e\u9032\u884c\u8a2d\u7f6e\u3002<\/li>\n<li>\u8a2d\u7f6e\u61c9\u7528\u7a0b\u5e8f\u6c60\uff1a\u70ba\u4e0d\u540c\u7684\u61c9\u7528\u7a0b\u5e8f\u5275\u5efa\u7368\u7acb\u7684\u61c9\u7528\u7a0b\u5e8f\u6c60\uff0c\u4ee5\u63d0\u9ad8\u5b89\u5168\u6027\u548c\u7a69\u5b9a\u6027\u3002<\/li>\n<li>\u914d\u7f6e\u5b89\u5168\u6027\uff1a\u78ba\u4fdd\u7db2\u7ad9\u7684\u5b89\u5168\u6027\uff0c\u8a2d\u7f6e\u9069\u7576\u7684\u6b0a\u9650\u548c\u8eab\u4efd\u9a57\u8b49\u65b9\u5f0f\u3002<\/li>\n<\/ul>\n<h2 id=\"mysql%e7%9a%84%e5%ae%89%e8%a3%9d%e8%88%87%e9%85%8d%e7%bd%ae-LMCBDGDadN\">MySQL\u7684\u5b89\u88dd\u8207\u914d\u7f6e<\/h2>\n<p>MySQL\u662f\u4e00\u500b\u6d41\u884c\u7684\u958b\u6e90\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u9069\u5408\u7528\u65bc\u5404\u7a2e\u61c9\u7528\u7a0b\u5e8f\u3002\u8981\u5728Win2003\u4e0a\u5b89\u88ddMySQL\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\uff1a<\/p>\n<ol>\n<li>\u4e0b\u8f09MySQL\u5b89\u88dd\u5305\uff0c\u9078\u64c7\u9069\u5408Win2003\u7684\u7248\u672c\u3002<\/li>\n<li>\u904b\u884c\u5b89\u88dd\u7a0b\u5e8f\uff0c\u6309\u7167\u63d0\u793a\u5b8c\u6210\u5b89\u88dd\u3002<\/li>\n<li>\u5728\u5b89\u88dd\u904e\u7a0b\u4e2d\uff0c\u8a2d\u7f6eroot\u7528\u6236\u7684\u5bc6\u78bc\uff0c\u4e26\u9078\u64c7\u9069\u5408\u7684\u670d\u52d9\u555f\u52d5\u65b9\u5f0f\u3002<\/li>\n<\/ol>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u53ef\u4ee5\u4f7f\u7528MySQL\u7684\u547d\u4ee4\u884c\u5de5\u5177\u6216\u5716\u5f62\u5316\u7ba1\u7406\u5de5\u5177\uff08\u5982MySQL Workbench\uff09\u4f86\u7ba1\u7406\u6578\u64da\u5eab\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u57fa\u672c\u7684\u64cd\u4f5c\u793a\u4f8b\uff1a<\/p>\n<pre><code>-- \u5275\u5efa\u6578\u64da\u5eab\nCREATE DATABASE mydatabase;\n\n-- \u5275\u5efa\u7528\u6236\u4e26\u6388\u6b0a\nCREATE USER 'myuser'@'localhost' IDENTIFIED BY 'mypassword';\nGRANT ALL PRIVILEGES ON mydatabase.* TO 'myuser'@'localhost';\n\n-- \u67e5\u770b\u6578\u64da\u5eab\u5217\u8868\nSHOW DATABASES;\n<\/code><\/pre>\n<h2 id=\"%e6%9c%8d%e5%8b%99%e7%ae%a1%e7%90%86%e5%8a%a9%e6%89%8b%e5%b7%a5%e5%85%b7-LMCBDGDadN\">\u670d\u52d9\u7ba1\u7406\u52a9\u624b\u5de5\u5177<\/h2>\n<p>\u5728Win2003\u74b0\u5883\u4e2d\uff0c\u6709\u4e00\u4e9b\u5de5\u5177\u53ef\u4ee5\u5e6b\u52a9\u7ba1\u7406IIS\u548cMySQL\u670d\u52d9\uff0c\u63d0\u5347\u7ba1\u7406\u6548\u7387\uff1a<\/p>\n<ul>\n<li><strong>WMI\uff08Windows Management Instrumentation\uff09<\/strong>\uff1a\u53ef\u4ee5\u7528\u4f86\u76e3\u63a7\u548c\u7ba1\u7406IIS\u548cMySQL\u670d\u52d9\u7684\u72c0\u614b\u3002<\/li>\n<li><strong>PowerShell<\/strong>\uff1a\u96d6\u7136Win2003\u7684PowerShell\u652f\u6301\u6709\u9650\uff0c\u4f46\u4ecd\u7136\u53ef\u4ee5\u7528\u4f86\u57f7\u884c\u4e00\u4e9b\u57fa\u672c\u7684\u7ba1\u7406\u4efb\u52d9\u3002<\/li>\n<li><strong>\u7b2c\u4e09\u65b9\u7ba1\u7406\u5de5\u5177<\/strong>\uff1a\u5982phpMyAdmin\u53ef\u4ee5\u7528\u4f86\u7ba1\u7406MySQL\u6578\u64da\u5eab\uff0c\u800cIIS\u7ba1\u7406\u5668\u5247\u63d0\u4f9b\u4e86\u5716\u5f62\u5316\u754c\u9762\u4f86\u7ba1\u7406IIS\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-LMCBDGDadN\">\u7e3d\u7d50<\/h2>\n<p>\u5118\u7ba1Windows Server 2003\u5df2\u7d93\u4e0d\u518d\u53d7\u5230\u5b98\u65b9\u652f\u6301\uff0c\u4f46\u5728\u67d0\u4e9b\u7279\u5b9a\u60c5\u6cc1\u4e0b\uff0c\u4ecd\u7136\u53ef\u4ee5\u5229\u7528IIS\u548cMySQL\u9032\u884c\u6709\u6548\u7684\u670d\u52d9\u7ba1\u7406\u3002\u901a\u904e\u6b63\u78ba\u7684\u914d\u7f6e\u548c\u4f7f\u7528\u5408\u9069\u7684\u7ba1\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u78ba\u4fdd\u7cfb\u7d71\u7684\u7a69\u5b9a\u904b\u884c\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u548c\u9ad8\u6548\u7684\u670d\u52d9\u7684\u7528\u6236\uff0c\u8003\u616e\u4f7f\u7528<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u6216\u5176\u4ed6\u96f2\u670d\u52d9\u53ef\u80fd\u662f\u4e00\u500b\u4e0d\u932f\u7684\u9078\u64c7\uff0c\u4ee5\u4fbf\u5728\u66f4\u73fe\u4ee3\u7684\u74b0\u5883\u4e2d\u904b\u884c\u61c9\u7528\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Efficiently manage Win2003 IIS and MySQL services with our comprehensive assistant tool, streamlining server administration and enhancing performance.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-53705","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/53705","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=53705"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/53705\/revisions"}],"predecessor-version":[{"id":53706,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/53705\/revisions\/53706"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=53705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=53705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=53705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}