質問編集履歴
1
a
title
CHANGED
File without changes
|
body
CHANGED
@@ -50,4 +50,64 @@
|
|
50
50
|
production:
|
51
51
|
<<: *default
|
52
52
|
database: db/production.sqlite3
|
53
|
+
```
|
54
|
+
|
55
|
+
# 追記
|
56
|
+
ご回答いただき、下記3つの対応を行いましたが未だに上手くいきません。。
|
57
|
+
①PostgreSQLのインストールを実施
|
58
|
+
②database.ymlを以下のように修正
|
59
|
+
```databaseyml
|
60
|
+
# SQLite version 3.x
|
61
|
+
# gem install sqlite3
|
62
|
+
#
|
63
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
64
|
+
# gem 'sqlite3'
|
65
|
+
#
|
66
|
+
default: &default
|
67
|
+
adapter: postgresql
|
68
|
+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
69
|
+
timeout: 5000
|
70
|
+
|
71
|
+
development:
|
72
|
+
<<: *default
|
73
|
+
database: appname_development
|
74
|
+
|
75
|
+
# Warning: The database defined as "test" will be erased and
|
76
|
+
# re-generated from your development database when you run "rake".
|
77
|
+
# Do not set this db to the same as development or production.
|
78
|
+
test:
|
79
|
+
<<: *default
|
80
|
+
database: appname_test
|
81
|
+
|
82
|
+
production:
|
83
|
+
<<: *default
|
84
|
+
database: appname_production
|
85
|
+
username: appname
|
86
|
+
password: <%= ENV['APPNAME_DATABASE_PASSWORD'] %>
|
87
|
+
```
|
88
|
+
・PostgreSQL\12\data\pg_hba.conf」を以下のように修正
|
89
|
+
|
90
|
+
```before
|
91
|
+
# IPv4 local connections:
|
92
|
+
host all all 127.0.0.1/32 md5
|
93
|
+
# IPv6 local connections:
|
94
|
+
host all all ::1/128 md5
|
95
|
+
# Allow replication connections from localhost, by a user with the
|
96
|
+
# replication privilege.
|
97
|
+
host replication all 127.0.0.1/32 md5
|
98
|
+
host replication all ::1/128 md5
|
99
|
+
```
|
100
|
+
```after
|
101
|
+
# IPv4 local connections:
|
102
|
+
host all all 127.0.0.1/32 trust
|
103
|
+
# IPv6 local connections:
|
104
|
+
host all all ::1/128 trust
|
105
|
+
# Allow replication connections from localhost, by a user with the
|
106
|
+
# replication privilege.
|
107
|
+
host replication all 127.0.0.1/32 trust
|
108
|
+
host replication all ::1/128 trust
|
109
|
+
```
|
110
|
+
上記の対応を行い、再実施したところ、以下のエラーが発生しました。
|
111
|
+
```ConnectionBad
|
112
|
+
fe_sendauth: no password supplied
|
53
113
|
```
|