B
B
beginer1232016-07-29 15:59:31
PostgreSQL
beginer123, 2016-07-29 15:59:31

Postgresql 9.5 ubuntu how to install?

Hello, I'm trying to install Postgresql 9.5 on ubuntu
I'm doing everything step by step from this tutorial https://www.youtube.com/watch?v=dSqosCc_KLA
I stopped at the step where I need to enter the psql command (4:54 minute video)
I get an error

psql: 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"?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Pavel Khorikov, 2016-07-29
@Horik_off

Yesterday I rolled Postgres 9.5 without problems on off. manual .
1. Follow the link .
2. We look at the version of our Ubuntu distribution with the command:
3. In the drop-down list (see screenshot), select our version to form a link to the repository.
After selecting in the drop-down list, the link will be generated in the field below automatically.
4. Add the repositories with this link to the /etc/apt/sources.list.d/pgdg.list file with the command:
insert a line into the file

deb apt.postgresql.org/pub/repos/apt trusty-pgdg main

5. Import the repository key with the command
6. Update the list of repositories with the command
sudo apt-get update

7. Well, installation by the team
sudo apt-get install postgresql-9.5

8. In the console we write psql
9. Console output in comments (may not be allowed the first time, since the user still needs to be created)
And yes, install according to the official manual - everything is simply described there.
Just be aware that my version may differ from your kernel version and codename. How to view your data - point 2.
Good luck.

K
ky0, 2016-07-29
@ky0

There is an option without connecting repositories.
Download, make the file executable, run.

I
Igor, 2016-07-29
@DMGarikk

It's better not to do that. if there is no understanding of the OS device and the installed software. Otherwise, you can catch a lot of extremely specific rakes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question