Title says it all. I cannot figure out how to give a user account the ability to create and drop databases. Is there a way to do this with GRANT ?
Tell me more
×
Database Administrators Stack Exchange is a question and answer site for
database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.
|
|
|||
|
|
|
It's done with To drop a database, either you're superuser (which can be granted with |
|||
|
|
|
First you have to login as postgres user:
After entering new pasword for postgres user (special kin dof user on PostgreSQL) you ar now logged as postgres and you can grant perrmision to other users. Let's say you have user named user1. To grant him ability to create and drop databases you have to write (as postgre user):
Hope this helps... |
|||
|
|