Hi,
I'm very new to postgreSQL and i need to know how to specify the username and passwd for a database that i've already created. any help is greatly appreciated!!
this is for redhat 7.x
log in as root
go to the command promt(or console as you call it)
type service postgresql start
there should be a confirmation saying that service started
type su postgres
then type createuser somename
there will be a question saying
"should user be allowed to create/drop databases?"
type y
then create a database by typing
createdb dbname
then type
psql template1
then type grant all privileges on dbname to somename
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.