{"id":150705,"date":"2020-09-02T16:32:34","date_gmt":"2020-09-02T08:32:34","guid":{"rendered":"http:\/\/4563.org\/?p=150705"},"modified":"2020-09-02T16:32:34","modified_gmt":"2020-09-02T08:32:34","slug":"emmm-%e6%b2%a1%e5%a4%aa%e8%83%bd%e7%90%86%e8%a7%a3-%e4%b8%ba%e5%95%a5%e6%88%91%e7%94%a8-postgres-%e7%9a%84-dbowner-%e5%8e%bb%e8%ae%bf%e9%97%ae%e5%ba%93%e4%b8%ad%e7%9a%84%e8%a1%a8%ef%bc%8c%e8%bf%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=150705","title":{"rendered":"emmm \u6ca1\u592a\u80fd\u7406\u89e3, \u4e3a\u5565\u6211\u7528 postgres \u7684 dbowner \u53bb\u8bbf\u95ee\u5e93\u4e2d\u7684\u8868\uff0c\u8fd8\u662f\u6ca1\u6743\u9650"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  emmm \u6ca1\u592a\u80fd\u7406\u89e3, \u4e3a\u5565\u6211\u7528 postgres \u7684 dbowner \u53bb\u8bbf\u95ee\u5e93\u4e2d\u7684\u8868\uff0c\u8fd8\u662f\u6ca1\u6743\u9650               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : skypyb <\/span>  <span><i><\/i> 14<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6298\u817e\u4e86\u597d\u4e45, \u9876\u4e0d\u4f4f\u4e86\u3002<\/p>\n<p>\u8be6\u60c5\u770b\u56fe:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200906_5f54902d2fbb6.png\" alt=\"emmm \u6ca1\u592a\u80fd\u7406\u89e3, \u4e3a\u5565\u6211\u7528 postgres \u7684 dbowner \u53bb\u8bbf\u95ee\u5e93\u4e2d\u7684\u8868\uff0c\u8fd8\u662f\u6ca1\u6743\u9650\" \/><\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3049737\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : skypyb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u73af\u5883: Ubuntu 18.04 PostgreSQL 11 <br \/>\u5927\u6982\u7684\u547d\u4ee4\u6267\u884c\u6b65\u9aa4: <br \/>CREATE USER ymgal WITH PASSWORD &#8216;123&#8217;; <br \/>CREATE DATABASE ymgal OWNER ymgal; <br \/>GRANT ALL PRIVILEGES ON DATABASE ymgal TO ymgal; <\/p>\n<p>\u4e0a\u8fb9\u51e0\u4e2a\u641e\u5b8c\u540e, \u600e\u4e48\u8bd5\u90fd\u4e0d\u884c\u3002 \u53c8\u52a0\u4e86\u4e2a: grant all privileges on all tables in schema public to ymgal; <\/p>\n<p>\u7136\u540e\u73b0\u5728\u4e5f\u4e0d\u884c, \u5404\u5927\u641c\u7d22\u5f15\u64ce\u90fd\u67e5\u8fc7\u4e86, \u96be\u9876                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3049738\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Sharuru <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             schema \u5168\u7ebf\u6709\u5417\uff1f<br \/>dn+ \u770b\u770b<\/p>\n<p>GRANT USAGE ON SCHEMA public TO ymgal;                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3049739\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gzlock <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             docker \u4e00\u628a\u68ad\uff0c\u8bbe\u7f6e\u4e2a\u53d8\u91cf\u7684\u4e8b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3049740\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : skypyb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Sharuru \u770b\u4e86\u4e00\u4e0b\u6ca1\u6709, \u6211\u521a\u6309\u7167\u4f60\u7684\u547d\u4ee4\u6572\u4e86\u4e00\u4e0b\u3002 \u73b0\u5728\u6709\u4e86\uff0c \u4ecd\u7136\u6ca1\u6709\u6743\u9650                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3049741\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : whattheh3ll <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             grant all privileges on all tables in schema public to ymgal;<\/p>\n<p>\u8fd9\u4e00\u53e5\u4e4b\u524d\u6709\u6ca1\u6709\u5148\u9009\u62e9\u6570\u636e\u5e93\uff1f\u4e5f\u5c31\u662f c ymgal                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3049742\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : whattheh3ll <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Sorry \u6ca1\u770b\u6e05\u695a\u3002\u8bf7\u5ffd\u7565\u6211\u7684\u56de\u590d\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>emmm \u6ca1\u592a\u80fd\u7406\u89e3, \u4e3a\u5565\u6211\u7528 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/150705"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=150705"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/150705\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=150705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=150705"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=150705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}