Re: Where is 'createdb'?

From: Prashanth Kumar <prashanthk(at)hotmail(dot)com>
To: Kevin Burton <rkevinburton(at)charter(dot)net>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Where is 'createdb'?
Date: 2012-11-01 15:39:54
Message-ID: BLU002-W1271C7A7780B8D2BD53728CF600@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Here is what i did on a Ubuntu linux server. I had installed postgres using apt-get install postgres.
pkumar(at)ulinux1:~$ sudo su - postgres[sudo] password for pkumar: postgres(at)ulinux3:~$ createdb authDBpostgres(at)ulinux3:~$ createuser -P -l authuser

You have to sudo into postgres or fix your classpath
From: rkevinburton(at)charter(dot)net
To: pgsql-general(at)postgresql(dot)org
Subject: [GENERAL] Where is 'createdb'?
Date: Thu, 1 Nov 2012 10:32:42 -0500

This is probably a question for the authors of a book I have been reading but it may be faster to get an answer here. I was trying to follow along in a book ‘Seven Databases in Seven Weeks’ and chapter 2 deals with PostgreSQL. One of the first things it does is issue a command ‘createdb book’. The text before this command says, “Once you have Postgres installed, create a schema called book using the following command: $ createdb book’ But when I tried to issue this command (at a Linux command prompt) I get ‘createdb command not found’. Are the authors out of date? What is the current command? Kevin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Burton 2012-11-01 15:41:03 Re: Where is 'createdb'?
Previous Message Christopher Opena 2012-11-01 15:39:45 Re: Where is 'createdb'?