Re: Where is 'createdb'?

Поиск
Список
Период
Сортировка
От Prashanth Kumar
Тема Re: Where is 'createdb'?
Дата
Msg-id BLU002-W1271C7A7780B8D2BD53728CF600@phx.gbl
обсуждение исходный текст
Ответ на Where is 'createdb'?  ("Kevin Burton" <rkevinburton@charter.net>)
Список 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 по дате отправления:

Предыдущее
От: Daniel Popowich
Дата:
Сообщение: Using PostgreSQL for NSS databases
Следующее
От: Chris Angelico
Дата:
Сообщение: Re: Where is 'createdb'?