0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

PostgreSQLでcreateuserコマンドによるユーザ作成時にエラーが出た際の対応ログ

Posted at

現象

以下のメッセージが表示される
error: could not connect to database template1: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

対策

PostgreSQLサーバ上の既存アカウントにて以下のコマンドを実行し、サーバを起動する
pg_ctlcluster 12 main start

PostgreSQLインストール時、以下のメッセージが表示されている場合、本対策で対応可能です。
Success. You can now start the database server using: pg_ctlcluster 12 main start

要するに、インストール時のメッセージをしっかり読みなさい、ということでした。。。

PostgreSQLインストール方法について参考にしたサイト

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?