{"id":170791,"date":"2024-11-06T22:53:20","date_gmt":"2024-11-06T14:53:20","guid":{"rendered":"https:\/\/server.hk\/cnblog\/170791\/"},"modified":"2024-11-06T22:53:21","modified_gmt":"2024-11-06T14:53:21","slug":"%e8%98%8b%e6%9e%9c%e5%be%9elion-server%e4%b8%ad%e7%a7%bb%e9%99%a4mysql","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/170791\/","title":{"rendered":"\u860b\u679c\u5f9eLion Server\u4e2d\u79fb\u9664MySQL"},"content":{"rendered":"<h1 id=\"%e8%98%8b%e6%9e%9c%e5%be%9elion-server%e4%b8%ad%e7%a7%bb%e9%99%a4mysql-QAOZIjkfzz\">\u860b\u679c\u5f9eLion Server\u4e2d\u79fb\u9664MySQL<\/h1>\n<p>\u57282011\u5e74\uff0c\u860b\u679c\u516c\u53f8\u63a8\u51fa\u4e86\u5176\u4f3a\u670d\u5668\u64cd\u4f5c\u7cfb\u7d71Lion Server\uff0c\u9019\u662f\u4e00\u500b\u57fa\u65bcMac OS X\u7684\u4f3a\u670d\u5668\u89e3\u6c7a\u65b9\u6848\uff0c\u65e8\u5728\u70ba\u4e2d\u5c0f\u578b\u4f01\u696d\u548c\u958b\u767c\u8005\u63d0\u4f9b\u4e00\u500b\u7c21\u55ae\u6613\u7528\u7684\u4f3a\u670d\u5668\u74b0\u5883\u3002\u7136\u800c\uff0c\u96a8\u8457\u6280\u8853\u7684\u9032\u6b65\u548c\u5e02\u5834\u9700\u6c42\u7684\u8b8a\u5316\uff0c\u860b\u679c\u5728\u5f8c\u7e8c\u7248\u672c\u4e2d\u505a\u51fa\u4e86\u4e00\u4e9b\u91cd\u8981\u7684\u6539\u8b8a\uff0c\u5176\u4e2d\u4e4b\u4e00\u5c31\u662f\u5f9eLion Server\u4e2d\u79fb\u9664MySQL\u6578\u64da\u5eab\u3002<\/p>\n<h2 id=\"mysql%e7%9a%84%e8%83%8c%e6%99%af-QAOZIjkfzz\">MySQL\u7684\u80cc\u666f<\/h2>\n<p>MySQL\u662f\u4e00\u500b\u958b\u6e90\u7684\u95dc\u806f\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u5ee3\u6cdb\u61c9\u7528\u65bc\u5404\u7a2e\u7db2\u7ad9\u548c\u61c9\u7528\u7a0b\u5e8f\u4e2d\u3002\u7531\u65bc\u5176\u9ad8\u6548\u80fd\u3001\u7a69\u5b9a\u6027\u548c\u9748\u6d3b\u6027\uff0cMySQL\u6210\u70ba\u4e86\u8a31\u591a\u958b\u767c\u8005\u7684\u9996\u9078\u6578\u64da\u5eab\u3002\u860b\u679c\u5728\u65e9\u671f\u7684\u4f3a\u670d\u5668\u7248\u672c\u4e2d\u9078\u64c7\u5c07MySQL\u4f5c\u70ba\u5176\u9810\u8a2d\u7684\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\uff0c\u9019\u4f7f\u5f97\u958b\u767c\u8005\u80fd\u5920\u8f15\u9b06\u5730\u5728\u5176\u4f3a\u670d\u5668\u4e0a\u642d\u5efa\u6578\u64da\u9a45\u52d5\u7684\u61c9\u7528\u3002<\/p>\n<h2 id=\"%e7%a7%bb%e9%99%a4mysql%e7%9a%84%e5%8e%9f%e5%9b%a0-QAOZIjkfzz\">\u79fb\u9664MySQL\u7684\u539f\u56e0<\/h2>\n<p>\u860b\u679c\u5f9eLion Server\u4e2d\u79fb\u9664MySQL\u7684\u6c7a\u5b9a\uff0c\u4e3b\u8981\u662f\u57fa\u65bc\u4ee5\u4e0b\u5e7e\u500b\u539f\u56e0\uff1a<\/p>\n<ul>\n<li><strong>\u5546\u696d\u8003\u91cf\uff1a<\/strong>\u96a8\u8457\u958b\u6e90\u6578\u64da\u5eab\u7684\u589e\u9577\uff0c\u5e02\u5834\u4e0a\u51fa\u73fe\u4e86\u8a31\u591a\u66ff\u4ee3\u65b9\u6848\uff0c\u5982PostgreSQL\u548cSQLite\u7b49\u3002\u9019\u4e9b\u6578\u64da\u5eab\u5728\u67d0\u4e9b\u65b9\u9762\u63d0\u4f9b\u4e86\u66f4\u597d\u7684\u6027\u80fd\u548c\u529f\u80fd\uff0c\u860b\u679c\u53ef\u80fd\u5e0c\u671b\u5c07\u91cd\u5fc3\u8f49\u5411\u9019\u4e9b\u66f4\u5177\u7af6\u722d\u529b\u7684\u9078\u64c7\u3002<\/li>\n<li><strong>\u793e\u7fa4\u652f\u6301\uff1a<\/strong>MySQL\u7684\u793e\u7fa4\u652f\u6301\u5728\u79fb\u9664\u5f8c\u4ecd\u7136\u5b58\u5728\uff0c\u4f46\u860b\u679c\u53ef\u80fd\u5e0c\u671b\u5c07\u5176\u8cc7\u6e90\u96c6\u4e2d\u5728\u5176\u4ed6\u6280\u8853\u4e0a\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u6eff\u8db3\u7528\u6236\u9700\u6c42\u3002<\/li>\n<li><strong>\u5b89\u5168\u6027\u8003\u91cf\uff1a<\/strong>\u96a8\u8457\u6578\u64da\u5b89\u5168\u6027\u554f\u984c\u7684\u65e5\u76ca\u56b4\u91cd\uff0c\u860b\u679c\u53ef\u80fd\u8a8d\u70ba\u5176\u4ed6\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\u5728\u5b89\u5168\u6027\u65b9\u9762\u8868\u73fe\u66f4\u4f73\uff0c\u5f9e\u800c\u9078\u64c7\u4e0d\u518d\u9810\u88ddMySQL\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%9b%bf%e4%bb%a3%e6%96%b9%e6%a1%88-QAOZIjkfzz\">\u66ff\u4ee3\u65b9\u6848<\/h2>\n<p>\u96a8\u8457MySQL\u7684\u79fb\u9664\uff0c\u860b\u679c\u958b\u59cb\u63a8\u85a6\u4f7f\u7528\u5176\u4ed6\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u898b\u7684\u66ff\u4ee3\u65b9\u6848\uff1a<\/p>\n<ul>\n<li><strong>PostgreSQL\uff1a<\/strong>\u9019\u662f\u4e00\u500b\u529f\u80fd\u5f37\u5927\u7684\u958b\u6e90\u95dc\u806f\u6578\u64da\u5eab\uff0c\u652f\u6301\u8907\u96dc\u67e5\u8a62\u548c\u4e8b\u52d9\u8655\u7406\uff0c\u9069\u5408\u9700\u8981\u9ad8\u6027\u80fd\u548c\u9ad8\u53ef\u9760\u6027\u7684\u61c9\u7528\u3002<\/li>\n<li><strong>SQLite\uff1a<\/strong>\u9019\u662f\u4e00\u500b\u8f15\u91cf\u7d1a\u7684\u5d4c\u5165\u5f0f\u6578\u64da\u5eab\uff0c\u9069\u5408\u5c0f\u578b\u61c9\u7528\u548c\u958b\u767c\u74b0\u5883\uff0c\u56e0\u5176\u7c21\u55ae\u6613\u7528\u800c\u53d7\u5230\u958b\u767c\u8005\u7684\u9752\u775e\u3002<\/li>\n<li><strong>MariaDB\uff1a<\/strong>\u4f5c\u70baMySQL\u7684\u5206\u652f\uff0cMariaDB\u63d0\u4f9b\u4e86\u8207MySQL\u76f8\u4f3c\u7684\u529f\u80fd\uff0c\u4f46\u5728\u6027\u80fd\u548c\u5b89\u5168\u6027\u4e0a\u6709\u9032\u4e00\u6b65\u7684\u6539\u9032\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b5%90%e8%ab%96-QAOZIjkfzz\">\u7d50\u8ad6<\/h2>\n<p>\u860b\u679c\u5f9eLion Server\u4e2d\u79fb\u9664MySQL\u7684\u6c7a\u5b9a\u53cd\u6620\u4e86\u6280\u8853\u751f\u614b\u7cfb\u7d71\u7684\u8b8a\u5316\u548c\u5e02\u5834\u9700\u6c42\u7684\u6f14\u8b8a\u3002\u96d6\u7136MySQL\u66fe\u7d93\u662f\u8a31\u591a\u958b\u767c\u8005\u7684\u9996\u9078\uff0c\u4f46\u96a8\u8457\u5176\u4ed6\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\u7684\u8208\u8d77\uff0c\u860b\u679c\u9078\u64c7\u5c07\u91cd\u5fc3\u8f49\u5411\u66f4\u5177\u7af6\u722d\u529b\u7684\u9078\u64c7\u3002\u5c0d\u65bc\u958b\u767c\u8005\u800c\u8a00\uff0c\u4e86\u89e3\u9019\u4e9b\u8b8a\u5316\u4e26\u9078\u64c7\u5408\u9069\u7684\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\u5c07\u662f\u672a\u4f86\u6210\u529f\u7684\u95dc\u9375\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u53ef\u9760\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u6eff\u8db3\u4e0d\u540c\u9700\u6c42\u7684\u5ba2\u6236\u3002\u7121\u8ad6\u662f\u9700\u8981\u9ad8\u6027\u80fd\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u9084\u662f\u9748\u6d3b\u7684 <a href=\"https:\/\/server.hk\">\u4e91\u670d\u52a1\u5668<\/a>\uff0c\u6211\u5011\u90fd\u80fd\u70ba\u60a8\u63d0\u4f9b\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u860b\u679c\u5728Lion Server\u4e2d\u79fb\u9664MySQL\uff0c\u8f49\u5411\u5176\u4ed6\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\uff0c\u5f71\u97ff\u958b\u767c\u8005\u548c\u7528\u6236\u7684\u9078\u64c7\u8207\u4f7f\u7528\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-170791","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/170791","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=170791"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/170791\/revisions"}],"predecessor-version":[{"id":170792,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/170791\/revisions\/170792"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=170791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=170791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=170791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}