Score:0

Set up Postgres

us flag

I recently istalled PostgresSQL , but when I enter psql to the terminal, if gives me the error:

psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or directory
    Is the server running locally and accepting connections on that socket?

This is the socket I want to use. How do I set up PostgresSQL ?

Liso avatar
sd flag
https://stackoverflow.com/questions/31645550/postgresql-why-psql-cant-connect-to-server
user801855 avatar
us flag
I'm not sure I follow
user801855 avatar
us flag
```sudo find /tmp/ -name .s.PGSQL.5432 find: ‘/tmp/.mount_pcloudwWkTBf’: Permission denied```
in flag
How did you install PostgreSQL? Have you confirmed that the service is running?
user801855 avatar
us flag
The service does not appear to be running
user801855 avatar
us flag
postgres' website provides this
user801855 avatar
us flag
```sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt-get update sudo apt-get -y install postgresql```
user801855 avatar
us flag
https://www.postgresql.org/download/linux/ubuntu/
Liso avatar
sd flag
What Ubuntu version?
user801855 avatar
us flag
Ubuntu 20.04.3 LTS
Liso avatar
sd flag
Have you try reinstall? I can run it successfully..
user801855 avatar
us flag
I purged and installed, now when I try to set up a database I get this ```no driver was registered for the schema "", did you maybe forget to require the database driver?```
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.