{"id":5540,"date":"2024-11-14T09:01:08","date_gmt":"2024-11-14T01:01:08","guid":{"rendered":"https:\/\/fwq.ai\/blog\/5540\/"},"modified":"2024-11-14T09:01:08","modified_gmt":"2024-11-14T01:01:08","slug":"mysql%e5%ae%9e%e4%be%8b%e6%80%8e%e4%b9%88%e6%9f%a5%e8%af%a2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/5540\/","title":{"rendered":"mysql\u5b9e\u4f8b\u600e\u4e48\u67e5\u8be2"},"content":{"rendered":"<blockquote><p>\n  \u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u8be2 mysql \u5b9e\u4f8b\uff1a\u5feb\u901f\u67e5\u8be2\u6240\u6709\u5b9e\u4f8b\uff1agcloud sql instances list\u8be6\u7ec6\u67e5\u8be2\u7279\u5b9a\u5b9e\u4f8b\u4fe1\u606f\uff1agcloud sql instances describe [instance_name]\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/29\/2024052908452362156.jpg\" class=\"aligncenter\" title=\"mysql\u5b9e\u4f8b\u600e\u4e48\u67e5\u8be2\u63d2\u56fe\" alt=\"mysql\u5b9e\u4f8b\u600e\u4e48\u67e5\u8be2\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u67e5\u8be2 MySQL \u5b9e\u4f8b<\/strong><\/p>\n<p><strong>\u5feb\u901f\u67e5\u8be2\uff1a<\/strong><\/p>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u8be2\u6240\u6709 MySQL \u5b9e\u4f8b\uff1a<\/p>\n<pre>gcloud sql instances list<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u8be6\u7ec6\u67e5\u8be2\uff1a<\/strong><\/p>\n<p>\u8981\u67e5\u8be2\u7279\u5b9a MySQL \u5b9e\u4f8b\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>gcloud sql instances describe [INSTANCE_NAME]<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u67e5\u8be2\u8f93\u51fa\uff1a<\/strong><\/p>\n<p>describe \u547d\u4ee4\u5c06\u8f93\u51fa\u4ee5\u4e0b\u8be6\u7ec6\u4fe1\u606f\uff1a<\/p>\n<ul>\n<li>\u540d\u79f0<\/li>\n<li>\u6570\u636e\u5e93\u7248\u672c<\/li>\n<li>\u673a\u5668\u7c7b\u578b<\/li>\n<li>\u5b58\u50a8\u5927\u5c0f<\/li>\n<li>IP \u5730\u5740<\/li>\n<li>\u5f53\u524d\u72b6\u6001<\/li>\n<li>\u533a\u57df<\/li>\n<li>\u521b\u5efa\u65f6\u95f4<\/li>\n<\/ul>\n<p><strong>\u793a\u4f8b\uff1a<\/strong><\/p>\n<p>\u67e5\u8be2\u540d\u4e3a my-instance \u7684 MySQL \u5b9e\u4f8b\u7684\u8be6\u7ec6\u4fe1\u606f\uff1a<\/p>\n<pre>gcloud sql instances describe my-instance<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u8f93\u51fa\u793a\u4f8b\uff1a<\/strong><\/p>\n<pre>ID: my-instance\nName: my-instance\nDatabase version: MYSQL_5_7\nInstance type: db-n1-standard-1\nRegion: us-central1\nZone: us-central1-a\nIP address: 127.0.0.1\nPort: 3306\nCurrent operation:\n  Name: backup-operation-123456789\n  Started: 2020-05-05 12:00:00 UTC\n  Ended: 2020-05-05 13:00:00 UTC\n  Status: DONE\n  Errors: []\n  Warnings: []\n  Enqueued: False\n  User: myuser@example.com\nCreate time: 2020-04-04 10:00:00 UTC<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5b9e\u4f8b\u600e\u4e48\u67e5\u8be2\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>\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u8be2 mysql \u5b9e\u4f8b\uff1a\u5feb\u901f\u67e5\u8be2\u6240\u6709\u5b9e\u4f8b\uff1agcloud sql instances list\u8be6\u7ec6\u67e5\u8be2\u7279\u5b9a\u5b9e\u4f8b\u4fe1\u606f\uff1agcloud sql instances describe [instance_name] \u5982\u4f55\u67e5\u8be2 MySQL \u5b9e\u4f8b \u5feb\u901f\u67e5\u8be2\uff1a \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u8be2\u6240\u6709 MySQL \u5b9e\u4f8b\uff1a gcloud sql instances list \u767b\u5f55\u540e\u590d\u5236 \u8be6\u7ec6\u67e5\u8be2\uff1a \u8981\u67e5\u8be2\u7279\u5b9a MySQL \u5b9e\u4f8b\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a gcloud sql instances describe [INSTANCE_NAME] \u767b\u5f55\u540e\u590d\u5236 \u67e5\u8be2\u8f93\u51fa\uff1a describe \u547d\u4ee4\u5c06\u8f93\u51fa\u4ee5\u4e0b\u8be6\u7ec6\u4fe1\u606f\uff1a \u540d\u79f0 \u6570\u636e\u5e93\u7248\u672c \u673a\u5668\u7c7b\u578b \u5b58\u50a8\u5927\u5c0f IP \u5730\u5740 \u5f53\u524d\u72b6\u6001 \u533a\u57df \u521b\u5efa\u65f6\u95f4 \u793a\u4f8b\uff1a \u67e5\u8be2\u540d\u4e3a my-instance \u7684 MySQL \u5b9e\u4f8b\u7684\u8be6\u7ec6\u4fe1\u606f\uff1a gcloud sql instances describe my-instance [&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-5540","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5540","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=5540"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5540\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=5540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=5540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=5540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}