03-02-2011
Seems it is installed since it will be waiting for input. Issung
perl -v will show you more info.
Quote:
I just found that I haven't configure PostgreSQL as it should be....
When it is installed, as you wrote, you should check if it is up and running.
ps -ef| grep -i postgre should show some processes up and running.
If it is up and running, I doubt createdb will just run without supplying an administrative user id and password when trying to connect.
There should be some logfiles being written by PostgreSQL, where it logs it's messages so you can get a clue maybe, what is not working (if it is not already running).
There should be plenty of guides on the web that explain, how to set up a PostgreSQL database.
10 More Discussions You Might Find Interesting
1. Solaris
what is the command to install a software from a remote server or cd?
pkg_add -rv bash < freebsd
i need the same command on solaris
i try to use pkgadd but no success (0 Replies)
Discussion started by: litch
0 Replies
2. UNIX for Dummies Questions & Answers
Need help guys, i need to know where can i get a unix on solaris 10 software to install unix into my computer since i dont have internet. I want to start playing on them at home. Any help appreciated ....
sonny (1 Reply)
Discussion started by: rxsonny
1 Replies
3. UNIX for Dummies Questions & Answers
Hello everyone,
I want to install a software on an external hard disk. I used Fedora core 6 whose default shell is bash. As user I have changed to sh shell because in order to install I have to use the sh shell. I had changed permission on all the files using
sh-3.1$ chmod +x... (6 Replies)
Discussion started by: sitij109
6 Replies
4. HP-UX
Hi fnds,
Can anybody tell me how to install x brower software on HP-UX and after
successfull installation how I can launch the x browser.
Thanks,
Vinodky (0 Replies)
Discussion started by: vinodky
0 Replies
5. UNIX for Dummies Questions & Answers
Hi, my friend refer me here he was saying that they have the best solution and really good wisdom of the UNIX system , i am learning and trying to install the audio software in my pc , but it 's not working may be i am forgetting something. (2 Replies)
Discussion started by: maggilane
2 Replies
6. UNIX for Dummies Questions & Answers
Hi
I ssh to a remote server which is running in SUSE. And I want to install apache2.0 there. Then I used yast2 to install it. But after installing it, I go to the terminal and type" apache -version" to check if apache is installed there. And it said "-bash: apache: command not found"
I don't... (0 Replies)
Discussion started by: AlexCheung
0 Replies
7. Red Hat
Hi,
I've been busy since this afternoon with an editor called e3 installation process!
I have the source code and I think that I have to make a .C file first then try make command ...
./configure doesn't work, there is no useful README and I am completely lost...
The file for Fedora x86_64 is... (1 Reply)
Discussion started by: almirzaee
1 Replies
8. Red Hat
Hi Team
While installation of RHEL, By mistake I have selected "Customize Later". RHEL has installed with basic software. NOw I need to install the other package which is available in DVD, How Can I get the same package selection window to install the software ? (0 Replies)
Discussion started by: atul9806
0 Replies
9. AIX
Hello,
I would like to ask if someone knows if is possible to install sofware via smitty or installp in another directorie , or we have to accept the default location?
i would like to intall in /opt folder , but smitty installed it in /usr
Thanks in advance (4 Replies)
Discussion started by: prpkrk
4 Replies
10. Red Hat
Hi there.
I'm setting up my first "proper" server using RHEL - in the past I've only had various test servers etc running, so want to make sure I'm doing things properly.
When installing s/w, let's say Apache, I don't want it to run as root, correct? Should I then create a new user "apache"... (4 Replies)
Discussion started by: eludlow
4 Replies
LEARN ABOUT REDHAT
createuser
CREATEUSER(1) PostgreSQL Client Applications CREATEUSER(1)
NAME
createuser - define a new PostgreSQL user account
SYNOPSIS
createuser [ options... ] [ username ]
DESCRIPTION
createuser creates a new PostgreSQL user. Only superusers (users with usesuper set in the pg_shadow table) can create new PostgreSQL
users, so createuser must be invoked by someone who can connect as a PostgreSQL superuser.
Being a superuser also implies the ability to bypass access permission checks within the database, so superuserdom should not be granted
lightly.
createuser is a shell script wrapper around the SQL command CREATE USER [create_user(7)] via the PostgreSQL interactive terminal psql(1).
Thus, there is nothing special about creating users via this or other methods. This means that the psql application must be found by the
script and that a database server must be running at the targeted host. Also, any default settings and environment variables used by psql
and the libpq front-end library will apply.
OPTIONS
createuser accepts the following command-line arguments:
username
Specifies the name of the PostgreSQL user to be created. This name must be unique among all PostgreSQL users.
-a
--adduser
The new user is allowed to create other users. (Note: Actually, this makes the new user a superuser. The option is poorly named.)
-A
--no-adduser
The new user is not allowed to create other users (i.e., the new user is a regular user, not a superuser).
-d
--createdb
The new user is allowed to create databases.
-D
--no-createdb
The new user is not allowed to create databases.
-e
--echo Echo the queries that createuser generates and sends to the server.
-E
--encrypted
Encrypts the user's password stored in the database. If not specified, the default is used.
-i uid
--sysid uid
Allows you to pick a non-default user ID for the new user. This is not necessary, but some people like it.
-N
--unencrypted
Does not encrypt the user's password stored in the database. If not specified, the default is used.
-P
--pwprompt
If given, createuser will issue a prompt for the password of the new user. This is not necessary if you do not plan on using pass-
word authentication.
-q
--quiet
Do not display a response.
You will be prompted for a name and other missing information if it is not specified on the command line.
createuser also accepts the following command-line arguments for connection parameters:
-h host
--host host
Specifies the host name of the machine on which the server is running. If host begins with a slash, it is used as the directory for
the Unix domain socket.
-p port
--port port
Specifies the Internet TCP/IP port or local Unix domain socket file extension on which the server is listening for connections.
-U username
--username username
User name to connect as (not the user name to create)
-W
--password
Force password prompt (to connect to the server, not for the password of the new user).
ENVIRONMENT
PGHOST
PGPORT
PGUSER Default connection parameters
DIAGNOSTICS
CREATE USER
All is well.
createuser: creation of user "username" failed
Something went wrong. The user was not created.
If there is an error condition, the backend error message will be displayed. See CREATE USER [create_user(7)] and psql(1) for possibili-
ties.
EXAMPLES
To create a user joe on the default database server:
$ createuser joe
Is the new user allowed to create databases? (y/n) n
Shall the new user be allowed to create more new users? (y/n) n
CREATE USER
To create the same user joe using the server on host eden, port 5000, avoiding the prompts and taking a look at the underlying query:
$ createuser -p 5000 -h eden -D -A -e joe
CREATE USER "joe" NOCREATEDB NOCREATEUSER
CREATE USER
SEE ALSO
dropuser(1), CREATE USER [create_user(7)]
Application 2002-11-22 CREATEUSER(1)