# フォーラムをマージする際の Пpoблем

**URL:** https://meta.discourse.org/t/problem-for-merge-two-forum/225189
**Category:** Self-hosting
**Created:** [2022 年 4 月 25 日午前 5:47 UTC](https://meta.discourse.org/t/problem-for-merge-two-forum/225189 "2022-04-25T05:47:06Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![cocococosti](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cocococosti/32/231474_2.png) [@cocococosti](https://meta.discourse.org/u/cocococosti)
#### Post date: [2022 年 4 月 25 日午後 10:36 UTC](https://meta.discourse.org/t/problem-for-merge-two-forum/225189/2 "2022-04-25T22:36:47Z")

</div>

> [@McFly](#):
>
> エラーは `psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: FATAL: role \"root\" does not exist` です。

おそらく、psql は現在のシステムユーザー (root) を使用しようとしていますが、Postgres には存在しません。psql を実行するときにユーザーを指定する必要があるかもしれません: `psql -U postgres`

そして、この手順を確認してください。

> [@neil](#):
>
> 公式の Docker コンテナ (推奨) でインポートを実行している場合、スクリプトに提供するために postgres のパスワードをリセットする必要があります。そうしないと、`postgres` ユーザーがデータベースにアクセスできないというエラーが発生する可能性があります。
> 
> パスワードを変更するには:
> 
> ```plaintext
> sudo -u postgres psql
> \password postgres
> (新しいパスワードを入力)
> \q
> 
> ```

---

_[View the full topic](https://meta.discourse.org/t/problem-for-merge-two-forum/225189)._
