Search Postgresql Archives

Re: Re: Create Database automatacally after silent installation of postgresql. ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 27, 2011 at 6:38 PM, Thomas Kellerer <spam_eater@xxxxxxx> wrote:
hirenlad, 27.04.2011 09:47:

Hiii
     Hey i m using postgresql 8.4. now i m install postgresql8.4 silently
and it work properly, no issue during this process. Now problem is i want to
create one database automatically after install postgresql 8.4.

  Can u plz inform me is it possible ? and if it is possible then how ?


Simply run initdb after your installation is finished.


If you say, new database in the same cluster(/data directory running on 5432 port) then by default there will be three databases(postgres,template0,template1), for new you can use CREATE DATABASE command.

If you want another cluster, you can use INITDB as said by Thomas

Best Regards,
Raghavendra
EnterpriseDB Corporation
The Enterprise Postgres Company
Email: raghavendra.rao@xxxxxxxxxxxxxxxx
Blog: http://raghavt.blogspot.com/
 



--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux