Closed OrfeasLitos closed 5 years ago
This is not an issue related to this repository. Have you tried to sudo chown -R postgres:postgres /var/run/postgresql
?
Tl; dr: setting up the required database should be documented.
I think it is.
If you mean detailed instructions how to create a database in postgres I think it is out of the scope of this repository. There are plenty available online tutorials showing how to do that.
Found some more instructions here: https://wiki.archlinux.org/index.php/PostgreSQL
I tried following the instructions found here. Since
postgres
cannot (and should not) be run as root, using/usr/local/pgsql/data
as data directory was not a choice, so I created a directory withinblockchain_course
nameddb_data
and raninitdb -D db_data
. But thenpostgres -D db_data
failed withFATAL: could not create lock file "/run/postgresql/.s.PGSQL.5432.lock": Permission denied
. Can you please help?Tl; dr: setting up the required database should be documented.