LoginSignup
0
0

More than 3 years have passed since last update.

postgresqlの起動方法

Last updated at Posted at 2020-10-04

結論

基礎的なことだけど二回もここで詰まったのでメモ
service postgresql start

経緯


$ createdb mydb

createdb: 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 "/tmp/.s.PGSQL.5432"?

公式には

こちらも、インストール手順を点検するか管理者に相談してください。

と書いてありインストールに問題があるかと思ったが起動されていないだけだった。。。
インストールからDB作成までのチュートリアルや解説記事ではstartをしていないので環境によっては自動でstartするのかな??

間違い等ありましたら指摘お願いします。

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