{"id":1198,"date":"2018-10-10T15:10:57","date_gmt":"2018-10-10T06:10:57","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=1198"},"modified":"2018-10-10T15:10:57","modified_gmt":"2018-10-10T06:10:57","slug":"post-1198","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2018\/10\/10\/post-1198\/","title":{"rendered":"PostgreSQL\u306eDB\u306b\u63a5\u7d9a\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3001\u30a8\u30e9\u30fc\u3067\u63a5\u7d9a\u3067\u304d\u306a\u3044"},"content":{"rendered":"<p>\u25a0\u74b0\u5883<\/p>\n<p>Ubuntu Server 18.04.2<\/p>\n<p>PostgreSQL 10<\/p>\n<p>\u25a0\u767a\u751f\u3057\u305f\u30a8\u30e9\u30fc<\/p>\n<pre>zen@redmine:~$ psql -d redmine -U dbuser -W\r\nPassword for user dbuser:\r\npsql: FATAL:  Peer authentication failed for user \"dbuser\"<\/pre>\n<p>\u25a0\u7de8\u96c6\u3057\u305f\u30d5\u30a1\u30a4\u30eb<\/p>\n<p>\/etc\/postgresql\/10\/main\/pg_hba.conf<\/p>\n<p>\u2605\u66f8\u304d\u63db\u3048\u524d<\/p>\n<pre># \"local\" is for Unix domain socket connections only\r\nlocal   all             all                                     peer<\/pre>\n<p>\u2605\u66f8\u304d\u63db\u3048\u5f8c<\/p>\n<pre># \"local\" is for Unix domain socket connections only\r\nlocal   all             all                                     md5<\/pre>\n<p>\u25a0Postgresql\u306e\u30b5\u30fc\u30d3\u30b9\u518d\u8d77\u52d5<\/p>\n<pre>sudo service postgresql restart<\/pre>\n<p>\u25a0\u3053\u308c\u3067\u6210\u529f\u3057\u305f\uff01<\/p>\n<pre>zen@redmine:~$ psql -d redmine -U dbuser -W\r\nPassword for user dbuser:\r\npsql (10.5 (Ubuntu 10.5-0ubuntu0.18.04))\r\nType \"help\" for help.\r\n\r\nredmine=><\/pre>\n<p>\u25a0\u53c2\u8003\u306b\u3057\u305fURL<\/p>\n<p><a href=\"https:\/\/qiita.com\/tomlla\/items\/9fa2feab1b9bd8749584\">https:\/\/qiita.com\/tomlla\/items\/9fa2feab1b9bd8749584<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0\u74b0\u5883 Ubuntu Server 18.04.2 PostgreSQL 10 \u25a0\u767a\u751f\u3057\u305f\u30a8\u30e9\u30fc zen@redmine:~$ psql -d redmine -U dbuser -W Password for user [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36,7],"tags":[115],"class_list":["post-1198","post","type-post","status-publish","format-standard","hentry","category-linux","category-tech-memo","tag-postgresql"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/1198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=1198"}],"version-history":[{"count":1,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/1198\/revisions"}],"predecessor-version":[{"id":1199,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/1198\/revisions\/1199"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=1198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=1198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=1198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}