Обсуждение: Query about

Поиск
Список
Период
Сортировка

Query about

От
pyntamil pillaickani
Дата:
hello sir,
we r installing the cygwin in Wndows XP according to the procedure given in the following inkp://archives.postgresql.org/pgsql-cygwin/2003-07/msg00004.php.
 
we are comming across the problem while the command
$ initdb -D /usr/share/postgresql/data [14] typed .
 
we dont know how to solve this .
for ur reference we are attaching the commands we have typed.
 
we are waiting for your reply,
 
thanking you,
pillaickani
 

Yahoo! India Matrimony: Find your partner online.

Re: Query about

От
mike g
Дата:
If you are installing the latest versions of postgresql, 7.4.2 or 7.4.3
then you must install cygserver in addition to cygipc.  Once cygserver
is installed be sure to add cygserver to your path.

Mike
On Tue, 2004-06-15 at 05:13, pyntamil pillaickani wrote:
> hello sir,
> we r installing the cygwin in Wndows XP according to the procedure
> given in the following
> inkp://archives.postgresql.org/pgsql-cygwin/2003-07/msg00004.php.
>
> we are comming across the problem while the command
> $ initdb -D /usr/share/postgresql/data [14] typed .
>
> we dont know how to solve this .
> for ur reference we are attaching the commands we have typed.
>
> we are waiting for your reply,
>
> thanking you,
> pillaickani
>
>
> Yahoo! India Matrimony: Find your partner online.
>
> ______________________________________________________________________
> Administrator@rural ~
> $ # ipc-daemon --install-as-service
>
> Administrator@rural ~
> $ # net user postgres $password /add /fullname:postgres
>
> Administrator@rural ~
> $ # mkpasswd -l -u postgres >>/etc/passwd
>
> Administrator@rural ~
> $ # cmd /c secpol.msc # [3] [4] [5] [12]
>
> Administrator@rural ~
> $ # cygrunsrv --install postmaster --path /usr/bin/postmaster --args "-D
>
> Administrator@rural ~
> $ /usr/share/postgresql/data -i" --dep ipc-daemon --termsig INT --user
> > postgres --shutdown # [6]
> > # cygrunsrv --install postmaster --path /usr/bin/postmaster --args "-D
> bash: /usr/share/postgresql/data: No such file or directory
>
> Administrator@rural ~
> $ # cygrunsrv --install postmaster --path /usr/bin/postmaster --args "-D /usr/s
> hare/postgresql/data -i" --dep ipc-daemon --termsig INT --user postgres --shutd
> own
>
> Administrator@rural ~
> $ # mkdir /usr/share/postgresql/data
>
> Administrator@rural ~
> $ # chown postgres /usr/share/postgresql/data # [10]
>
> Administrator@rural ~
> $ # net start ipc-daemon # [7]
>
> Administrator@rural ~
> $
>
> Administrator@rural ~
> $ initdb -D /usr/share/postgresql/data [14]
> The files belonging to this database system will be owned by user "Administrator
> ".
> This user must also own the server process.
>
> The database cluster will be initialized with locale C.
>
> creating directory [14]... ok
> creating directory [14]/base... ok
> creating directory [14]/global... ok
> creating directory [14]/pg_xlog... ok
> creating directory [14]/pg_clog... ok
> selecting default max_connections... Signal 12
> Signal 12
> Signal 12
> Signal 12
> Signal 12
> Signal 12
> 10
> selecting default shared_buffers... Signal 12
> Signal 12
> Signal 12
> Signal 12
> Signal 12
> Signal 12
> Signal 12
> Signal 12
> Signal 12
> Signal 12
> Signal 12
> 50
> creating configuration files... ok
> creating template1 database in [14]/base/1... Signal 12
>
> initdb: failed
> initdb: removing data directory "[14]"
>
> ______________________________________________________________________
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster