Re: Where is 'createdb'? - Mailing list pgsql-general

From Prashanth Kumar
Subject Re: Where is 'createdb'?
Date
Msg-id BLU002-W1271C7A7780B8D2BD53728CF600@phx.gbl
Whole thread Raw
In response to Where is 'createdb'?  ("Kevin Burton" <rkevinburton@charter.net>)
List pgsql-general
Here is what i did  on a Ubuntu linux server.  I had installed postgres using apt-get install postgres.

pkumar@ulinux1:~$ sudo su - postgres
[sudo] password for pkumar: 
postgres@ulinux3:~$ createdb authDB
postgres@ulinux3:~$ createuser -P -l authuser


You have to sudo into postgres or fix your classpath


From: rkevinburton@charter.net
To: pgsql-general@postgresql.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

pgsql-general by date:

Previous
From: Daniel Popowich
Date:
Subject: Using PostgreSQL for NSS databases
Next
From: Chris Angelico
Date:
Subject: Re: Where is 'createdb'?