{"id":146995,"date":"2024-11-01T12:17:29","date_gmt":"2024-11-01T04:17:29","guid":{"rendered":"https:\/\/server.hk\/cnblog\/146995\/"},"modified":"2024-11-01T12:17:30","modified_gmt":"2024-11-01T04:17:30","slug":"windows-10%e7%b3%bb%e7%b5%b1%e5%ae%89%e8%a3%9d%e6%95%b8%e6%93%9a%e5%ba%ab%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/146995\/","title":{"rendered":"Windows 10\u7cfb\u7d71\u5b89\u88dd\u6578\u64da\u5eab\u914d\u7f6e"},"content":{"rendered":"<h1 id=\"windows-10%e7%b3%bb%e7%b5%b1%e5%ae%89%e8%a3%9d%e6%95%b8%e6%93%9a%e5%ba%ab%e9%85%8d%e7%bd%ae-yNDtWuyUTR\">Windows 10\u7cfb\u7d71\u5b89\u88dd\u6578\u64da\u5eab\u914d\u7f6e<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u6578\u4f4d\u6642\u4ee3\uff0c\u6578\u64da\u5eab\u7684\u4f7f\u7528\u5df2\u6210\u70ba\u5404\u7a2e\u61c9\u7528\u7a0b\u5e8f\u548c\u670d\u52d9\u7684\u6838\u5fc3\u3002\u7121\u8ad6\u662f\u4f01\u696d\u7d1a\u61c9\u7528\u9084\u662f\u500b\u4eba\u9805\u76ee\uff0c\u6b63\u78ba\u914d\u7f6e\u6578\u64da\u5eab\u90fd\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u5728Windows 10\u7cfb\u7d71\u4e0a\u5b89\u88dd\u548c\u914d\u7f6e\u6578\u64da\u5eab\uff0c\u4e26\u63d0\u4f9b\u4e00\u4e9b\u5be6\u7528\u7684\u6b65\u9a5f\u548c\u5efa\u8b70\u3002<\/p>\n<h2 id=\"%e9%81%b8%e6%93%87%e6%95%b8%e6%93%9a%e5%ba%ab%e7%ae%a1%e7%90%86%e7%b3%bb%e7%b5%b1-yNDtWuyUTR\">\u9078\u64c7\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71<\/h2>\n<p>\u5728\u958b\u59cb\u5b89\u88dd\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u9078\u64c7\u5408\u9069\u7684\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff08DBMS\uff09\u3002\u5e38\u898b\u7684\u9078\u64c7\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>MySQL\uff1a<\/strong>\u4e00\u500b\u958b\u6e90\u7684\u95dc\u806f\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u5ee3\u6cdb\u61c9\u7528\u65bcWeb\u61c9\u7528\u7a0b\u5e8f\u3002<\/li>\n<li><strong>PostgreSQL\uff1a<\/strong>\u53e6\u4e00\u500b\u958b\u6e90\u7684\u95dc\u806f\u6578\u64da\u5eab\uff0c\u7279\u5225\u9069\u5408\u9700\u8981\u9ad8\u6027\u80fd\u548c\u64f4\u5c55\u6027\u7684\u61c9\u7528\u3002<\/li>\n<li><strong>Microsoft SQL Server\uff1a<\/strong>\u5fae\u8edf\u7684\u5546\u696d\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\uff0c\u9069\u5408\u4f01\u696d\u7d1a\u61c9\u7528\u3002<\/li>\n<li><strong>SQLite\uff1a<\/strong>\u8f15\u91cf\u7d1a\u7684\u6578\u64da\u5eab\uff0c\u9069\u5408\u5c0f\u578b\u61c9\u7528\u548c\u958b\u767c\u6e2c\u8a66\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%ae%89%e8%a3%9d%e6%95%b8%e6%93%9a%e5%ba%ab-yNDtWuyUTR\">\u5b89\u88dd\u6578\u64da\u5eab<\/h2>\n<h3 id=\"%e4%bb%a5mysql%e7%82%ba%e4%be%8b-yNDtWuyUTR\">\u4ee5MySQL\u70ba\u4f8b<\/h3>\n<p>\u4ee5\u4e0b\u662f\u5b89\u88ddMySQL\u7684\u6b65\u9a5f\uff1a<\/p>\n<ol>\n<li>\u8a2a\u554f<a href=\"https:\/\/dev.mysql.com\/downloads\/mysql\/\" rel=\"nofollow noopener\" target=\"_blank\">MySQL\u5b98\u65b9\u7db2\u7ad9<\/a>\uff0c\u4e0b\u8f09\u9069\u5408Windows 10\u7684\u5b89\u88dd\u5305\u3002<\/li>\n<li>\u904b\u884c\u4e0b\u8f09\u7684\u5b89\u88dd\u7a0b\u5e8f\uff0c\u9078\u64c7\u201cCustom\u201d\u5b89\u88dd\u9078\u9805\u4ee5\u4fbf\u9032\u884c\u81ea\u5b9a\u7fa9\u914d\u7f6e\u3002<\/li>\n<li>\u5728\u5b89\u88dd\u904e\u7a0b\u4e2d\uff0c\u9078\u64c7\u9700\u8981\u7684\u529f\u80fd\uff0c\u901a\u5e38\u5305\u62ecMySQL Server\u548cMySQL Workbench\u3002<\/li>\n<li>\u8a2d\u7f6eroot\u7528\u6236\u7684\u5bc6\u78bc\uff0c\u4e26\u9078\u64c7\u662f\u5426\u5141\u8a31\u9060\u7a0b\u8a2a\u554f\u3002<\/li>\n<li>\u5b8c\u6210\u5b89\u88dd\u5f8c\uff0c\u555f\u52d5MySQL\u670d\u52d9\u3002<\/li>\n<\/ol>\n<h3 id=\"%e5%ae%89%e8%a3%9dmicrosoft-sql-server-yNDtWuyUTR\">\u5b89\u88ddMicrosoft SQL Server<\/h3>\n<p>\u5982\u679c\u9078\u64c7\u4f7f\u7528Microsoft SQL Server\uff0c\u8acb\u9075\u5faa\u4ee5\u4e0b\u6b65\u9a5f\uff1a<\/p>\n<ol>\n<li>\u8a2a\u554f<a href=\"https:\/\/www.microsoft.com\/en-us\/sql-server\/sql-server-downloads\" rel=\"nofollow noopener\" target=\"_blank\">Microsoft SQL Server\u5b98\u65b9\u7db2\u7ad9<\/a>\uff0c\u4e0b\u8f09\u5b89\u88dd\u5305\u3002<\/li>\n<li>\u904b\u884c\u5b89\u88dd\u7a0b\u5e8f\uff0c\u9078\u64c7\u201c\u65b0\u5efaSQL Server\u7368\u7acb\u5b89\u88dd\u201d\u9078\u9805\u3002<\/li>\n<li>\u6839\u64da\u63d0\u793a\u9032\u884c\u914d\u7f6e\uff0c\u5305\u62ec\u9078\u64c7\u5be6\u4f8b\u540d\u7a31\u548c\u8a2d\u7f6e\u8eab\u4efd\u9a57\u8b49\u6a21\u5f0f\u3002<\/li>\n<li>\u5b8c\u6210\u5b89\u88dd\u5f8c\uff0c\u4f7f\u7528SQL Server Management Studio\uff08SSMS\uff09\u9023\u63a5\u5230\u6578\u64da\u5eab\u3002<\/li>\n<\/ol>\n<h2 id=\"%e9%85%8d%e7%bd%ae%e6%95%b8%e6%93%9a%e5%ba%ab-yNDtWuyUTR\">\u914d\u7f6e\u6578\u64da\u5eab<\/h2>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u63a5\u4e0b\u4f86\u9700\u8981\u9032\u884c\u6578\u64da\u5eab\u7684\u914d\u7f6e\u3002\u9019\u5305\u62ec\u5275\u5efa\u6578\u64da\u5eab\u3001\u8a2d\u7f6e\u7528\u6236\u6b0a\u9650\u4ee5\u53ca\u512a\u5316\u6027\u80fd\u7b49\u3002<\/p>\n<h3 id=\"%e5%89%b5%e5%bb%ba%e6%95%b8%e6%93%9a%e5%ba%ab-yNDtWuyUTR\">\u5275\u5efa\u6578\u64da\u5eab<\/h3>\n<pre><code>-- \u5728MySQL\u4e2d\u5275\u5efa\u6578\u64da\u5eab\nCREATE DATABASE my_database;\n\n-- \u5728SQL Server\u4e2d\u5275\u5efa\u6578\u64da\u5eab\nCREATE DATABASE my_database;\n<\/code><\/pre>\n<h3 id=\"%e8%a8%ad%e7%bd%ae%e7%94%a8%e6%88%b6%e6%ac%8a%e9%99%90-yNDtWuyUTR\">\u8a2d\u7f6e\u7528\u6236\u6b0a\u9650<\/h3>\n<pre><code>-- \u5728MySQL\u4e2d\u8a2d\u7f6e\u7528\u6236\u6b0a\u9650\nGRANT ALL PRIVILEGES ON my_database.* TO 'my_user'@'localhost' IDENTIFIED BY 'password';\n\n-- \u5728SQL Server\u4e2d\u8a2d\u7f6e\u7528\u6236\u6b0a\u9650\nCREATE LOGIN my_user WITH PASSWORD = 'password';\nUSE my_database;\nCREATE USER my_user FOR LOGIN my_user;\nALTER ROLE db_owner ADD MEMBER my_user;\n<\/code><\/pre>\n<h3 id=\"%e5%84%aa%e5%8c%96%e6%80%a7%e8%83%bd-yNDtWuyUTR\">\u512a\u5316\u6027\u80fd<\/h3>\n<p>\u70ba\u4e86\u78ba\u4fdd\u6578\u64da\u5eab\u7684\u9ad8\u6548\u904b\u884c\uff0c\u53ef\u4ee5\u8003\u616e\u4ee5\u4e0b\u5e7e\u500b\u65b9\u9762\uff1a<\/p>\n<ul>\n<li>\u5b9a\u671f\u5099\u4efd\u6578\u64da\u5eab\uff0c\u4ee5\u9632\u6578\u64da\u4e1f\u5931\u3002<\/li>\n<li>\u76e3\u63a7\u6578\u64da\u5eab\u6027\u80fd\uff0c\u53ca\u6642\u8abf\u6574\u914d\u7f6e\u53c3\u6578\u3002<\/li>\n<li>\u4f7f\u7528\u7d22\u5f15\u4f86\u52a0\u901f\u67e5\u8a62\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-yNDtWuyUTR\">\u7e3d\u7d50<\/h2>\n<p>\u5728Windows 10\u7cfb\u7d71\u4e0a\u5b89\u88dd\u548c\u914d\u7f6e\u6578\u64da\u5eab\u662f\u4e00\u500b\u76f8\u5c0d\u7c21\u55ae\u7684\u904e\u7a0b\uff0c\u53ea\u9700\u9075\u5faa\u4e0a\u8ff0\u6b65\u9a5f\u5373\u53ef\u5b8c\u6210\u3002\u9078\u64c7\u5408\u9069\u7684\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u4e26\u6839\u64da\u9700\u6c42\u9032\u884c\u914d\u7f6e\uff0c\u5c07\u6709\u52a9\u65bc\u63d0\u9ad8\u61c9\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u548c\u7a69\u5b9a\u6027\u3002\u5982\u679c\u60a8\u9700\u8981\u66f4\u9ad8\u6548\u7684\u89e3\u6c7a\u65b9\u6848\uff0c\u53ef\u4ee5\u8003\u616e\u4f7f\u7528<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u6216<a href=\"https:\/\/server.hk\">\u96f2\u4f3a\u670d\u5668<\/a>\u4f86\u652f\u6301\u60a8\u7684\u6578\u64da\u5eab\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3\u5982\u4f55\u5728Windows 10\u7cfb\u7d71\u4e0a\u5b89\u88dd\u548c\u914d\u7f6e\u6578\u64da\u5eab\uff0c\u78ba\u4fdd\u9ad8\u6548\u904b\u884c\u548c\u6700\u4f73\u6027\u80fd\u7684\u5b8c\u6574\u6307\u5357\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-146995","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/146995","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"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=146995"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/146995\/revisions"}],"predecessor-version":[{"id":146996,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/146995\/revisions\/146996"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=146995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=146995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=146995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}