I am using 4.14.10-2-MANJARO. I have tried to install Postgres Database. I have installed postgresql 10.1-1 by using command:
yaourt -S postgresql
And then:
sudo -u postgres -i
initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data'
createuser --interactive
And then I have got something like this:
createuser: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/run/postgresql/.s.PGSQL.5432"?
I don't know how to solve it. I have been using this website:
https://wiki.archlinux.org/index.php/PostgreSQL#Installing_PostgreSQL
Then I would like to create a new database by command:
createdb myDatabaseName
Thank you.
connections on Unix domain socket "/run/postgresql/.s.PGSQL.5432""?systemctl status postgresql.service? From the error message it sounds as if the server is not running. Didinitdbproduce any error output?