X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 327F7534AF for ; Thu, 24 Mar 2005 17:46:46 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 07502-07 for ; Thu, 24 Mar 2005 17:46:44 +0000 (GMT) Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by svr1.postgresql.org (Postfix) with ESMTP id 79A99534CC for ; Thu, 24 Mar 2005 17:46:43 +0000 (GMT) Received: from [82.225.31.50] (stbarthelemy-4-82-225-31-50.fbx.proxad.net [82.225.31.50]) by postfix3-2.free.fr (Postfix) with ESMTP id 1FC17C3C7 for ; Thu, 24 Mar 2005 18:46:36 +0100 (CET) Message-ID: <4242FD07.3000505@free.fr> Date: Thu, 24 Mar 2005 18:46:47 +0100 From: Olivier Martineau User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: How to move the ... References: <20050324031230.26419.qmail@mail.unika.ac.id> In-Reply-To: <20050324031230.26419.qmail@mail.unika.ac.id> Content-Type: multipart/alternative; boundary="------------060607010809010802000009" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.304 tagged_above=0 required=5 tests=AWL, HTML_30_40, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200503/399 X-Sequence-Number: 16897 This is a multi-part message in MIME format. --------------060607010809010802000009 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit You just have to run again the initdb command with -D option : initdb - D D:\DataPG Then, you'll have to start the database server with this command : pg_ctl -D D:\DataPG start dedy a écrit : > I have just installed PostgreSQL (postgresql-8.0.1.zip) on a Windows > 2K Prof platform. > but the the default Database Dir is in C:\Program > Files\PostgreSQL\8.0\data > can I move the default Database ex: D:\DataPG\ > where can i set it?? > Thank You for all your kind for reading my bad english email > Dedy Styawan > Semarang - Central Java > Indonesia > > > > > > | . > . |L /| . > _ . |\ _| \--+._/| . > / ||\| Y J ) / |/| ./ > J |)'( | ` F`.'/ > -<| F __ .-< > | / .-'. `. /-. L___ > J \ < \ | | O\|.-' > _J \ .- \/ O | | \ |F > '-F -<_. \ .-' `-' L__ > __J _ _. >-' )._. |-' > `-|.' /_. \_| F > /.- . _.< > /' /.' .' `\ > /L /' |/ _.-'-\ > /'J ___.---'\| > |\ .--' V | `. ` > |/`. `-. `._) > / .-.\ > \ ( `\ > `.\ > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > > --------------060607010809010802000009 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit You just have to run again the initdb command with -D option :
initdb - D D:\DataPG

Then, you'll have to start the database server with this command :
pg_ctl -D D:\DataPG start


dedy a écrit :
I have just installed PostgreSQL (postgresql-8.0.1.zip) on a Windows 2K Prof platform.
but the the default Database Dir is in C:\Program Files\PostgreSQL\8.0\data
can I move the default Database ex: D:\DataPG\
where can i set it??
Thank You for all your kind for reading my bad english email
Dedy Styawan
Semarang - Central Java
Indonesia





            |    .
        .   |L  /|   .
    _ . |\ _| \--+._/| .
   / ||\| Y J  )   / |/| ./   
  J  |)'( |        ` F`.'/
-<|  F         __     .-<
  | /       .-'. `.  /-. L___
  J \      <    \  | | O\|.-'
_J \  .-    \/ O | | \  |F
'-F  -<_.     \   .-'  `-' L__
__J  _   _.     >-'  )._.   |-'
`-|.'   /_.           \_|   F
/.-   .                _.<
/'    /.'             .'  `\   
/L  /'   |/      _.-'-\
/'J       ___.---'\|   
 |\  .--' V  | `. `
 |/`. `-.     `._)
    / .-.\       
    \ (  `\
     `.\

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

              http://archives.postgresql.org



--------------060607010809010802000009--