{"id":1623,"date":"2023-03-25T21:01:19","date_gmt":"2023-03-25T13:01:19","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1623"},"modified":"2023-04-23T22:03:51","modified_gmt":"2023-04-23T14:03:51","slug":"aws-config-rds-public-network-access","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/25\/aws-config-rds-public-network-access\/","title":{"rendered":"AWS\u914d\u7f6eRDS\u516c\u7f51\u8bbf\u95ee"},"content":{"rendered":"<h2>VPC<\/h2>\n<p>VPC\u5fc5\u987b\u914d\u7f6e\u652f\u6301<code>DNS resolution<\/code>\u548c<code>DNS hostnames<\/code><\/p>\n<p>\u9009\u4e2dVPC -&gt; <code>Edit DNS resolution<\/code> -&gt; <code>DNS resolution<\/code> \u8bbe\u7f6e\u4e3a <code>enable<\/code><br \/>\n\u9009\u4e2dVPC -&gt; <code>Edit DNS hostnames<\/code> -&gt; <code>DNS hostnames<\/code> \u8bbe\u7f6e\u4e3a <code>enable<\/code><\/p>\n<p><!-- more --><\/p>\n<h2>RDS\u5b9e\u4f8b<\/h2>\n<p>\u4fee\u6539RDS\u5b9e\u4f8b -&gt; \u7f51\u7edc\u4e0e\u5b89\u5168 -&gt; \u516c\u5f00\u53ef\u7528\u6027 -&gt; \u9009\u62e9<code>\u662f<\/code><\/p>\n<ul>\n<li>\u662f\uff1a\u627f\u8f7d\u6570\u636e\u5e93\u5b9e\u4f8b\u7684 VPC \u4e4b\u5916\u7684 EC2 \u5b9e\u4f8b\u548c\u8bbe\u5907\u5c06\u8fde\u63a5\u5230\u8be5\u6570\u636e\u5e93\u5b9e\u4f8b\u3002\u60a8\u8fd8\u5fc5\u987b\u9009\u62e9\u4e00\u4e2a\u6216\u591a\u4e2a VPC \u5b89\u5168\u7ec4\u6765\u6307\u5b9a\u54ea\u4e9b EC2 \u5b9e\u4f8b\u548c\u8bbe\u5907\u53ef\u4ee5\u8fde\u63a5\u5230\u8be5\u6570\u636e\u5e93\u5b9e\u4f8b\u3002<\/li>\n<li>\u5426\uff1a\u6570\u636e\u5e93\u5b9e\u4f8b\u5c06\u4e0d\u4f1a\u83b7\u5f97\u516c\u6709 IP \u5730\u5740\u3002VPC \u4e4b\u5916\u7684\u4efb\u4f55 EC2 \u5b9e\u4f8b\u548c\u8bbe\u5907\u90fd\u5c06\u65e0\u6cd5\u8fde\u63a5\u3002<\/li>\n<\/ul>\n<h2>\u5b89\u5168\u7ec4\u914d\u7f6e<\/h2>\n<h2>\u7528\u6237\u914d\u7f6e<\/h2>\n<pre><code class=\"language-sql\">CREATE USER &#039;yezhou&#039;@&#039;%&#039; IDENTIFIED WITH mysql_native_password;\nSET PASSWORD FOR &#039;yezhou&#039;@&#039;%&#039; = password(&#039;123456&#039;);\n\nGRANT SElECT ON `ok-mall`.* TO &#039;yezhou&#039;@&#039;%&#039;;\nGRANT SElECT ON `ok-mall\\_%`.* TO &#039;yezhou&#039;@&#039;%&#039;;\n\n# GRANT ALL PRIVILEGES ON `ok-mall`.* TO &#039;yezhou&#039;@&#039;%&#039;;\n# GRANT ALL PRIVILEGES ON `ok-mall\\_%`.* TO &#039;yezhou&#039;@&#039;%&#039;;\n\nFLUSH PRIVILEGES;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>VPC VPC\u5fc5\u987b\u914d\u7f6e\u652f\u6301DNS resolution\u548cDNS hostnames \u9009\u4e2dVPC -&gt; E [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[90],"tags":[400,406],"class_list":["post-1623","post","type-post","status-publish","format-standard","hentry","category-cloud-devops","tag-aws","tag-rds"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1623"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1623\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}