-   Linux - Software (
-   -   postgres initdb questions! (

doubleone 03-07-2005 03:38 AM

postgres initdb questions!
bash-3.00$ initdb -D /var/lib/pgsql/data
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 zh_CN.UTF-8.

fixing permissions on existing directory /var/lib/pgsql/data... ok
creating directory /var/lib/pgsql/data/base... ok
creating directory /var/lib/pgsql/data/global... ok
creating directory /var/lib/pgsql/data/pg_xlog... ok
creating directory /var/lib/pgsql/data/pg_clog... ok
selecting default max_connections... 100
selecting default shared_buffers... 1000
creating configuration files... ok
creating template1 database in /var/lib/pgsql/data/base/1... ok
initializing pg_shadow... ok
enabling unlimited row size for system tables... ok
initializing pg_depend... ok
creating system views... ok
loading pg_description... ok
creating conversions... ok
setting privileges on built-in objects... ok
creating information schema...
initdb: failed

acid_kewpie 03-07-2005 05:34 PM

that's not a question, just some console output.

rickh 03-07-2005 09:19 PM

Looks to me like you ran initdb as user: postgres, who probably doesn't have write access to /var/lib/

All times are GMT -5. The time now is 02:45 PM.