{"id":75746,"date":"2024-10-16T00:52:15","date_gmt":"2024-10-15T16:52:15","guid":{"rendered":"https:\/\/server.hk\/cnblog\/75746\/"},"modified":"2024-10-16T00:52:16","modified_gmt":"2024-10-15T16:52:16","slug":"mysql-%e7%89%88%e6%9c%ac%e8%99%9f%e6%9f%a5%e8%a9%a2%ef%bc%9a%e4%bd%bf%e7%94%a8%e5%91%bd%e4%bb%a4%e8%a1%8c%e6%9f%a5%e7%9c%8bmysql%e6%95%b8%e6%93%9a%e5%ba%ab%e7%89%88%e6%9c%ac%e8%99%9f-mysql%e6%95%b8","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/75746\/","title":{"rendered":"MySQL \u7248\u672c\u865f\u67e5\u8a62\uff1a\u4f7f\u7528\u547d\u4ee4\u884c\u67e5\u770bMySQL\u6578\u64da\u5eab\u7248\u672c\u865f (MySQL\u6578\u64da\u5eab\u7684\u7248\u672c\u67e5\u770b\u547d\u4ee4\u884c)"},"content":{"rendered":"<h1 id=\"mysql-%e7%89%88%e6%9c%ac%e8%99%9f%e6%9f%a5%e8%a9%a2%ef%bc%9a%e4%bd%bf%e7%94%a8%e5%91%bd%e4%bb%a4%e8%a1%8c%e6%9f%a5%e7%9c%8bmysql%e6%95%b8%e6%93%9a%e5%ba%ab%e7%89%88%e6%9c%ac%e8%99%9f-vTdayqXeRx\">MySQL \u7248\u672c\u865f\u67e5\u8a62\uff1a\u4f7f\u7528\u547d\u4ee4\u884c\u67e5\u770bMySQL\u6578\u64da\u5eab\u7248\u672c\u865f<\/h1>\n<p>\u5728\u7ba1\u7406MySQL\u6578\u64da\u5eab\u6642\uff0c\u4e86\u89e3\u7576\u524d\u4f7f\u7528\u7684MySQL\u7248\u672c\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u4e0d\u540c\u7248\u672c\u7684MySQL\u53ef\u80fd\u6703\u6709\u4e0d\u540c\u7684\u529f\u80fd\u3001\u6027\u80fd\u512a\u5316\u548c\u5b89\u5168\u6027\u66f4\u65b0\u3002\u56e0\u6b64\uff0c\u5b9a\u671f\u6aa2\u67e5MySQL\u7684\u7248\u672c\u865f\u53ef\u4ee5\u5e6b\u52a9\u7528\u6236\u78ba\u4fdd\u5176\u6578\u64da\u5eab\u74b0\u5883\u7684\u7a69\u5b9a\u6027\u548c\u5b89\u5168\u6027\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u901a\u904e\u547d\u4ee4\u884c\u67e5\u770bMySQL\u6578\u64da\u5eab\u7684\u7248\u672c\u865f\u3002<\/p>\n<h2 id=\"%e7%82%ba%e4%bb%80%e9%ba%bc%e8%a6%81%e6%9f%a5%e8%a9%a2mysql%e7%89%88%e6%9c%ac%e8%99%9f%ef%bc%9f-vTdayqXeRx\">\u70ba\u4ec0\u9ebc\u8981\u67e5\u8a62MySQL\u7248\u672c\u865f\uff1f<\/h2>\n<p>\u67e5\u8a62MySQL\u7248\u672c\u865f\u7684\u539f\u56e0\u6709\u5f88\u591a\uff0c\u4e3b\u8981\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>\u529f\u80fd\u517c\u5bb9\u6027\uff1a<\/strong>\u4e0d\u540c\u7248\u672c\u7684MySQL\u53ef\u80fd\u652f\u6301\u4e0d\u540c\u7684SQL\u8a9e\u6cd5\u548c\u529f\u80fd\uff0c\u4e86\u89e3\u7248\u672c\u865f\u53ef\u4ee5\u5e6b\u52a9\u958b\u767c\u8005\u9078\u64c7\u5408\u9069\u7684\u8a9e\u6cd5\u3002<\/li>\n<li><strong>\u6027\u80fd\u512a\u5316\uff1a<\/strong>\u65b0\u7248\u672c\u901a\u5e38\u6703\u5305\u542b\u6027\u80fd\u6539\u9032\uff0c\u4e86\u89e3\u7248\u672c\u865f\u53ef\u4ee5\u5e6b\u52a9\u7528\u6236\u6c7a\u5b9a\u662f\u5426\u9700\u8981\u5347\u7d1a\u3002<\/li>\n<li><strong>\u5b89\u5168\u6027\u66f4\u65b0\uff1a<\/strong>\u820a\u7248\u672c\u53ef\u80fd\u5b58\u5728\u5b89\u5168\u6f0f\u6d1e\uff0c\u5b9a\u671f\u6aa2\u67e5\u7248\u672c\u865f\u53ef\u4ee5\u5e6b\u52a9\u7528\u6236\u53ca\u6642\u66f4\u65b0\u4ee5\u4fdd\u8b77\u6578\u64da\u5b89\u5168\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8%e5%91%bd%e4%bb%a4%e8%a1%8c%e6%9f%a5%e7%9c%8bmysql%e7%89%88%e6%9c%ac%e8%99%9f-vTdayqXeRx\">\u5982\u4f55\u4f7f\u7528\u547d\u4ee4\u884c\u67e5\u770bMySQL\u7248\u672c\u865f<\/h2>\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\u67e5\u770bMySQL\u7248\u672c\u865f\u975e\u5e38\u7c21\u55ae\uff0c\u4ee5\u4e0b\u662f\u5e7e\u7a2e\u5e38\u7528\u7684\u65b9\u6cd5\uff1a<\/p>\n<h3 id=\"%e6%96%b9%e6%b3%95%e4%b8%80%ef%bc%9a%e4%bd%bf%e7%94%a8mysql%e5%91%bd%e4%bb%a4-vTdayqXeRx\">\u65b9\u6cd5\u4e00\uff1a\u4f7f\u7528mysql\u547d\u4ee4<\/h3>\n<p>\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\u662f\u4f7f\u7528mysql\u547d\u4ee4\u884c\u5de5\u5177\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u767b\u9304\u5230MySQL\u6578\u64da\u5eab\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>mysql -u username -p<\/code><\/pre>\n<p>\u5728\u8f38\u5165\u4e0a\u8ff0\u547d\u4ee4\u5f8c\uff0c\u7cfb\u7d71\u6703\u63d0\u793a\u60a8\u8f38\u5165\u5bc6\u78bc\u3002\u6210\u529f\u767b\u9304\u5f8c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u7248\u672c\u865f\uff1a<\/p>\n<pre><code>SELECT VERSION();<\/code><\/pre>\n<p>\u9019\u5c07\u8fd4\u56de\u7576\u524dMySQL\u7684\u7248\u672c\u865f\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre><code>8.0.23<\/code><\/pre>\n<h3 id=\"%e6%96%b9%e6%b3%95%e4%ba%8c%ef%bc%9a%e4%bd%bf%e7%94%a8mysqladmin%e5%91%bd%e4%bb%a4-vTdayqXeRx\">\u65b9\u6cd5\u4e8c\uff1a\u4f7f\u7528mysqladmin\u547d\u4ee4<\/h3>\n<p>\u53e6\u4e00\u7a2e\u65b9\u6cd5\u662f\u4f7f\u7528mysqladmin\u5de5\u5177\u3002\u9019\u662f\u4e00\u500b\u7ba1\u7406MySQL\u670d\u52d9\u5668\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u67e5\u770b\u7248\u672c\u865f\uff1a<\/p>\n<pre><code>mysqladmin -u username -p version<\/code><\/pre>\n<p>\u9019\u5c07\u986f\u793a\u5305\u62ec\u7248\u672c\u865f\u5728\u5167\u7684\u591a\u500b\u4fe1\u606f\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre><code>mysqladmin  Ver 8.0.23 for Linux on x86_64 (MySQL Community Server - GPL)<\/code><\/pre>\n<h3 id=\"%e6%96%b9%e6%b3%95%e4%b8%89%ef%bc%9a%e4%bd%bf%e7%94%a8-version%e9%81%b8%e9%a0%85-vTdayqXeRx\">\u65b9\u6cd5\u4e09\uff1a\u4f7f\u7528&#8211;version\u9078\u9805<\/h3>\n<p>\u5982\u679c\u60a8\u53ea\u60f3\u5feb\u901f\u67e5\u770bMySQL\u7684\u7248\u672c\u865f\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>mysql --version<\/code><\/pre>\n<p>\u9019\u5c07\u986f\u793aMySQL\u7684\u7248\u672c\u4fe1\u606f\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre><code>mysql  Ver 8.0.23 for Linux on x86_64 (MySQL Community Server - GPL)<\/code><\/pre>\n<h2 id=\"%e7%b8%bd%e7%b5%90-vTdayqXeRx\">\u7e3d\u7d50<\/h2>\n<p>\u4e86\u89e3MySQL\u7684\u7248\u672c\u865f\u5c0d\u65bc\u6578\u64da\u5eab\u7ba1\u7406\u81f3\u95dc\u91cd\u8981\u3002\u901a\u904e\u4e0a\u8ff0\u5e7e\u7a2e\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u8f15\u9b06\u5730\u5728\u547d\u4ee4\u884c\u4e2d\u67e5\u8a62\u5230\u7576\u524d\u7684MySQL\u7248\u672c\u865f\u3002\u7121\u8ad6\u662f\u70ba\u4e86\u529f\u80fd\u517c\u5bb9\u6027\u3001\u6027\u80fd\u512a\u5316\u9084\u662f\u5b89\u5168\u6027\u66f4\u65b0\uff0c\u5b9a\u671f\u6aa2\u67e5\u7248\u672c\u865f\u90fd\u662f\u4e00\u500b\u826f\u597d\u7684\u7fd2\u6163\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u7a69\u5b9a\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u6eff\u8db3\u4e0d\u540c\u7528\u6236\u7684\u9700\u6c42\u3002\u7121\u8ad6\u662f\u500b\u4eba\u9805\u76ee\u9084\u662f\u4f01\u696d\u61c9\u7528\uff0c\u6211\u5011\u7684 <a href=\"https:\/\/server.hk\">\u4f3a\u670d\u5668<\/a> \u90fd\u80fd\u70ba\u60a8\u63d0\u4f9b\u53ef\u9760\u7684\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u67e5\u8a62MySQL\u7248\u672c\u865f\u7684\u547d\u4ee4\u884c\u65b9\u6cd5\uff0c\u8f15\u9b06\u7372\u53d6MySQL\u6578\u64da\u5eab\u7684\u7248\u672c\u4fe1\u606f\uff0c\u78ba\u4fdd\u7cfb\u7d71\u517c\u5bb9\u6027\u8207\u6027\u80fd\u512a\u5316\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-75746","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/75746","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=75746"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/75746\/revisions"}],"predecessor-version":[{"id":75747,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/75746\/revisions\/75747"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=75746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=75746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=75746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}