{"id":6963,"date":"2020-04-29T08:12:04","date_gmt":"2020-04-29T00:12:04","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6963"},"modified":"2020-04-29T08:12:06","modified_gmt":"2020-04-29T00:12:06","slug":"initdb","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/initdb","title":{"rendered":"initdb\u547d\u4ee4 – \u521d\u59cb\u5316PostgreSQL\u6570\u636e\u5e93"},"content":{"rendered":"\n
\u4f7f\u7528initdb\u547d\u4ee4\u53ef\u4ee5\u5728\u5b89\u88c5\u5b8cPostgreSQL\u670d\u52a1\u5668\u6240\u9700\u8f6f\u4ef6\u5305\u4e4b\u540e\uff0c\u521d\u59cb\u5316\u4e00\u4e2aPostgreSQL\u6570\u636e\u5e93\u7c07\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong> initdb [\u53c2\u6570] [\u76ee\u5f55]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570:<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u521b\u5efa\u4e00\u4e2a\u65b0\u7684PostgreSQL\u6570\u636e\u5e93\u7c07\u5e76\u663e\u793a\u5185\u90e8\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n \u521d\u59cb\u5316PostgreSQL\u6570\u636e\u5e93\uff1a<\/p>\n\n\n\n \u8f93\u51fainitdb\u547d\u4ee4\u7684\u7248\u672c\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u4f7f\u7528initdb\u547d\u4ee4\u53ef\u4ee5\u5728\u5b89\u88c5\u5b8cPostgreSQL\u670d\u52a1\u5668\u6240\u9700\u8f6f\u4ef6\u5305\u4e4b\u540e\uff0c\u521d\u59cb\u5316\u4e00\u4e2aPostgreSQL\u6570\u636e\u5e93 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6963"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6963"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6963\/revisions"}],"predecessor-version":[{"id":7137,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6963\/revisions\/7137"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-U<\/td> \u6307\u5b9a\u6570\u636e\u5e93\u8d85\u7ea7\u7528\u6237\u540d<\/td><\/tr> -W<\/td> \u5bf9\u4e8e\u65b0\u7684\u8d85\u7ea7\u7528\u6237\u63d0\u793a\u8f93\u5165\u53e3\u4ee4<\/td><\/tr> -A<\/td> \u672c\u5730\u8fde\u63a5\u7684\u9ed8\u8ba4\u8ba4\u8bc1\u65b9\u6cd5<\/td><\/tr> -D<\/td> \u5f53\u524d\u6570\u636e\u5e93\u7c07\u7684\u4f4d\u7f6e<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# initdb PostgreSQL<\/pre>\n\n\n\n
[root@linuxcool ~]# su - postgres<\/pre>\n\n\n\n
[root@linuxcool ~]# initdb -v<\/pre>\n","protected":false},"excerpt":{"rendered":"