Search Postgresql Archives

Re: Creating a database with psql

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

 



On Wed, Jul 20, 2005 at 11:28:23AM +0200, Josef Springer wrote:
> i want to automate the startup of my database. So i have to create first 
> an user and a database, second the schema, all with psql. But how can i 
> create a database with psql if no database exist ?

When you first install PostgreSQL, you run initdb to initialize a
cluster.  This creates a few default databases and a database
superuser.  Then you start the backend and make connections to it
using psql or some other client.  See the "Server Administration"
part of the documentation for more information:

http://www.postgresql.org/docs/8.0/static/admin.html

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

[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