PostgreSQL error 'Could not connect to server: No such file or directory'

前端 未结 22 1895
梦谈多话
梦谈多话 2020-11-29 17:20

Like some others I am getting this error when I run rake db:migrate in my project or even try most database tasks for my Ruby on Rails 3.2 applications.

22条回答
  •  既然无缘
    2020-11-29 17:50

    for what it's worth, I experienced this same error when I had a typo (md4 instead of md5) in my pg_hba.conf file (/etc/postgresql/9.5/main/pg_hba.conf)

    If you got here as I did, double-check that file once to make sure there isn't anything ridiculous in there.

提交回复
热议问题