こんにちは。現在、Canvasのクイックインストール
をしようとしてます。
Test database configurationという項目の、
postgreSQL
1psql -c 'CREATE USER canvas' -d postgres 2psql -c 'ALTER USER canvas CREATEDB' -d postgres 3createdb -U canvas canvas_test
createdb -U canvas canvas_test
がパスワードが違うと言って刎ねられます。上のpsqlコマンドはパスワードが通りました。
postgresユーザーのパスワードを反映しているのかと思いましたが、違うようでどこでcanvasユーザーのパスワードを設定しているのか分かりません。
以下、エラー内容
postgreSQL
1postgres@DESKTOP-6DI7116:~$ psql -c 'CREATE USER canvas' -d postgres 2Password: 3ERROR: role "canvas" already exists 4postgres@DESKTOP-6DI7116:~$ psql -c 'ALTER USER canvas CREATEDB' -d postgres 5Password: 6ALTER ROLE 7postgres@DESKTOP-6DI7116:~$ createdb -U canvas canvas_test 8Password: 9Password: 10createdb: could not connect to database template1: FATAL: password authentication failed for user "canvas" 11FATAL: password authentication failed for user "canvas"
postgreSQL、DBに関しては初心者も同様なので悩んでおります。
ヒントまたはURLを教えて頂けると幸いです。
よろしくお願いします。
試したこと
Postgresでパスワードを忘れた場合の対策
こちらを試してみましたが、理解不足?のためか上手くいきませんでした。
追記
環境が抜けてました。Windows10のWSLでUbuntu18を動かして、その上でruby(素人)、postgreSQLを起動してます。
回答2件
あなたの回答
tips
プレビュー