Portál AbcLinuxu, 10. května 2025 03:06
postgres@black ~ $ createuser -P atan Enter password for new role: Enter it again: Shall the new role be a superuser? (y/n) y createuser: could not connect to database postgres: FATAL: database "postgres" does not exist DETAIL: The database subdirectory "/var/lib/postgresql/data/pg_tblspc/499/10793" is missing.Cast "499/10793" opravdu neexistuje. Jenze proc se to nevytvorilo pri initdb. Dik za rady.
inidb
s parametrem /var/lib/postgresql/data/
? Případně nevypsalo initdb nějakou chybu?
janko$ su ... prihlasis sa ako root root# su postgres postgres$ cd postgres$ mkdir prva postgres$ initdb -D prva postgres$ postmaster -D prva pripadne ako uzivatel postgres vytvorit usera (createuser)
postgres:postgres
? Je to divné, tu databázi by vám měl vytvořit už ebuild, podívejte se, co dělá pkg_config()
…
postgres@black ~ $ psql postgres=# CREATE USER atan WITH PASSWORD 'heslo'; databazu potom pre atan vytvoris postgres=# CREATE DATABASE atanbase WITH OWNER atan;uz mi normalne v shellu createuser/createdb funguje, i kdyz ten adresar /499/10793 tam porad neni.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.