Unix Technical Forum

Problems when initdb on WinXP with SP2.

This is a discussion on Problems when initdb on WinXP with SP2. within the pgsql Admins forums, part of the PostgreSQL category; --> Hi, I use Postgresql 8.03/ 8.04 on windows xp with sp2, all have same problems. run the windows cmd ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 05:31 AM
Johnson Zhao
 
Posts: n/a
Default Problems when initdb on WinXP with SP2.

Hi,

I use Postgresql 8.03/ 8.04 on windows xp with sp2, all have same problems.

run the windows cmd by:

runas /userostgres cmd

and run the initdb program like:

initdb --locale=C --username=postgres -W -A md5 -E UNICODE -D ../data

then it says:

creating directory ../data/ ... ok
creating directory ../data/global ... ok
creating directory ../data/pg_xlog ... ok
creating directory ../data/pg_xlog/archive_status ... ok
creating directory ../data/pg_clog ... ok
creating directory ../data/pg_subtrans ... ok
creating directory ../data/base ... ok
creating directory ../data/base/1 ... ok
creating directory ../data/pg_tblspc ... ok
selecting default max_connections ....

and the command window stayed there!

I'm newbie at postgresql, anyone can give me some help, thanks a lot.

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 05:31 AM
Qingqing Zhou
 
Posts: n/a
Default Re: Problems when initdb on WinXP with SP2.


"Johnson Zhao" <tianqi1981@gmail.com> wrote
>
> run the windows cmd by:
>
> runas /userostgres cmd
>
> and run the initdb program like:
>
> initdb --locale=C --username=postgres -W -A md5 -E UNICODE -D ../data
>
> then it says:
>
> creating directory ../data/ ... ok
> creating directory ../data/global ... ok
> creating directory ../data/pg_xlog ... ok
> creating directory ../data/pg_xlog/archive_status ... ok
> creating directory ../data/pg_clog ... ok
> creating directory ../data/pg_subtrans ... ok
> creating directory ../data/base ... ok
> creating directory ../data/base/1 ... ok
> creating directory ../data/pg_tblspc ... ok
> selecting default max_connections ....
>
> and the command window stayed there!
>


I can't reproduce your problem. Did you set some odd permission to user
"postgres"? Let's simplify it first, is there any problem if you login to
windows as "postgres" first, then do your initdb?

Regards,
Qingqing


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 05:31 AM
Thomas Harold
 
Posts: n/a
Default Re: Problems when initdb on WinXP with SP2.

Johnson Zhao wrote:

> Hi,
>
> I use Postgresql 8.03/ 8.04 on windows xp with sp2, all have same problems.
>
> run the windows cmd by:
>
> runas /userostgres cmd
>
> and run the initdb program like:
>
> initdb --locale=C --username=postgres -W -A md5 -E UNICODE -D ../data
>
> then it says:
>
> creating directory ../data/ ... ok
> creating directory ../data/global ... ok
> creating directory ../data/pg_xlog ... ok
> creating directory ../data/pg_xlog/archive_status ... ok
> creating directory ../data/pg_clog ... ok
> creating directory ../data/pg_subtrans ... ok
> creating directory ../data/base ... ok
> creating directory ../data/base/1 ... ok
> creating directory ../data/pg_tblspc ... ok
> selecting default max_connections ....
>
> and the command window stayed there!


I have no idea whether this matters or not, but I got bit during an 8.1
install by permissions issues. The postgres user requires read/write
permissions for the data folder and below, but it also requires read
permissions all the way back to the root of the drive (including the
root directory).

The specific situation for us was that we were trying to install to
D:\PostgreSQL\Data, but the postgres user didn't have read permissions
on the root of D:\ (or D:\PostgreSQL).

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 05:31 AM
Johnson Zhao
 
Posts: n/a
Default Re: Problems when initdb on WinXP with SP2.

Hi,

I 'm Johnson Zhao, thank you all.

I tried to reinstall the postgresql server without initing the
database, after installed then "initdb", all run. So the problem was
solved. Is PostgreSQL can't init the database more than one time? I
think this will not be a good peculiarity.

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:42 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com