error $"Data directory $pgdata is not empty!" return 1 fi return 0 } # code shared between initdb and upgrade actions perform_initdb() { if [ ! -e "$pgdata" ]; then mkdir "$pgdata" || return 1 fi $RESTORECON "$pgdata" ...
Thepostgresql-setup --initdbfails with this message: Raw * Initializing database in '/var/lib/pgsql/data' mkdir: cannot create directory '/var/lib/pgsql/data/log': File exists ERROR: Initializing database failed, possibly see /var/lib/pgsql/initdb_postgresql.log ...
You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. Success. You can now start the database server using: pg_ctl -D /pgdata10/ -l logfile start -bash-4.2$ 2.Configure The Postgresql.Conf -bash-4.2...
2023-09-25 20:39:16 [INFO ] [configure] /Stage[main]/Postgresql::Server::Initdb/Exec[postgresql_initdb]/returns: initdb: removing contents of data directory "/var/lib/pgsql/data" 2023-09-25 20:39:16 [ERROR ] [configure] '/usr/bin/initdb --pgdata '/var/lib/pgsql/data'' returned...
error $"Data directory $pgdata is not empty!" return 1 fi return 0 } # code shared between initdb and upgrade actions perform_initdb() { if [ ! -e "$pgdata" ]; then mkdir "$pgdata" || return 1 fi $RESTORECON "$pgdata" ...
-bash-4.2$ initdb -D /pgdata10/ The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locale "en_US.UTF-8". The default database encoding has accordingly been set to "UT...
error $"Data directory $pgdata is not empty!" return 1 fi return 0 } # code shared between initdb and upgrade actions perform_initdb() { if [ ! -e "$pgdata" ]; then mkdir "$pgdata" || return 1 fi $RESTORECON "$pgdata" ...