{"id":5387,"date":"2024-11-14T10:35:47","date_gmt":"2024-11-14T02:35:47","guid":{"rendered":"https:\/\/fwq.ai\/blog\/5387\/"},"modified":"2024-11-14T10:35:47","modified_gmt":"2024-11-14T02:35:47","slug":"%e6%80%8e%e4%b9%88%e7%9c%8bmysql%e7%9a%84%e7%89%88%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/5387\/","title":{"rendered":"\u600e\u4e48\u770bmysql\u7684\u7248\u672c"},"content":{"rendered":"<p><strong>\u5982\u4f55\u67e5\u770b  \u7248\u672c<\/strong><\/p>\n<p><strong>\u76f4\u63a5\u4f7f\u7528\u547d\u4ee4\uff1a<\/strong><\/p>\n<pre>mysql --version<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u4f7f\u7528 MySQL \u5ba2\u6237\u7aef\u8fde\u63a5\u540e\u67e5\u770b\uff1a<\/strong><\/p>\n<ol>\n<li>\u8fde\u63a5\u5230 MySQL \u6570\u636e\u5e93\uff1a<\/li>\n<\/ol>\n<pre>mysql -u username -p password<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ol>\n<li>\u4f7f\u7528 SELECT \u8bed\u53e5\u67e5\u8be2\u7248\u672c\u4fe1\u606f\uff1a<\/li>\n<\/ol>\n<pre>SELECT version();<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u67e5\u770b\u914d\u7f6e\u6587\u4ef6\uff1a<\/strong><\/p>\n<p>My.ini\/my.cnf \u6587\u4ef6\u4e2d\u5305\u542b MySQL \u7684\u7248\u672c\u4fe1\u606f\u3002\u5728 Windows \u4e2d\uff0c\u6b64\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e C:Program FilesMySQLMySQL Server X.Y\uff0c\u5176\u4e2d X.Y \u662f MySQL \u7248\u672c\u3002<\/p>\n<p><strong>\u4f7f\u7528 Sysbench \u5de5\u5177\uff1a<\/strong><\/p>\n<p>sysbench \u662f\u4e00\u4e2a\u7528\u4e8e MySQL \u6027\u80fd\u57fa\u51c6\u6d4b\u8bd5\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u663e\u793a MySQL \u7248\u672c\u3002<\/p>\n<pre>sysbench --version<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u901a\u8fc7 Docker \u955c\u50cf\uff1a<\/strong><\/p>\n<p>\u5982\u679c\u4f7f\u7528 Docker \u8fd0\u884c MySQL\uff0c\u53ef\u4ee5\u5728 Docker Hub \u9875\u9762\u4e0a\u67e5\u770b\u955c\u50cf\u7684\u7248\u672c\u4fe1\u606f\uff1a<\/p>\n<pre>https:\/\/hub.docker.com\/_\/mysql<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u770b\u7684\u7248\u672c\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u67e5\u770b \u7248\u672c \u76f4\u63a5\u4f7f\u7528\u547d\u4ee4\uff1a mysql &#8211;version \u767b\u5f55\u540e\u590d\u5236 \u4f7f\u7528 MySQL \u5ba2\u6237\u7aef\u8fde\u63a5\u540e\u67e5\u770b\uff1a \u8fde\u63a5\u5230 MySQL \u6570\u636e\u5e93\uff1a mysql -u username -p password \u767b\u5f55\u540e\u590d\u5236 \u4f7f\u7528 SELECT \u8bed\u53e5\u67e5\u8be2\u7248\u672c\u4fe1\u606f\uff1a SELECT version(); \u767b\u5f55\u540e\u590d\u5236 \u67e5\u770b\u914d\u7f6e\u6587\u4ef6\uff1a My.ini\/my.cnf \u6587\u4ef6\u4e2d\u5305\u542b MySQL \u7684\u7248\u672c\u4fe1\u606f\u3002\u5728 Windows \u4e2d\uff0c\u6b64\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e C:Program FilesMySQLMySQL Server X.Y\uff0c\u5176\u4e2d X.Y \u662f MySQL \u7248\u672c\u3002 \u4f7f\u7528 Sysbench \u5de5\u5177\uff1a sysbench \u662f\u4e00\u4e2a\u7528\u4e8e MySQL \u6027\u80fd\u57fa\u51c6\u6d4b\u8bd5\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u663e\u793a MySQL \u7248\u672c\u3002 sysbench &#8211;version \u767b\u5f55\u540e\u590d\u5236 \u901a\u8fc7 Docker \u955c\u50cf\uff1a \u5982\u679c\u4f7f\u7528 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-5387","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=5387"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5387\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=5387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=5387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=5387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}