error with postgresql datababse : Is the server running locally and accepting connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”?

后端 未结 8 806
执笔经年
执笔经年 2021-02-05 17:09

When I run the rake db:migrate or run the rails s command, I get the same error:

Error : could not connect to server: 
No such file or         


        
8条回答
  •  你的背包
    2021-02-05 17:40

    Solution:

    Try this

    export LC_ALL="en_US.UTF-8"
    

    and this. (9.3 is my current PostgreSQL version. Write your version!)

    sudo pg_createcluster 9.3 main --start
    

提交回复
热议问题