Allan's Blog

a ragtag collection of things I couldn't find in a quick 5-minute search on google, as well as some curiosities and what not.

Wednesday, January 8, 2014

Adding new users to postgres

http://www.cyberciti.biz/faq/howto-add-postgresql-user-account/

Access postgres with database you want to share,
do
CREATE USER new_user WITH PASSWORD 'password'; 
and then

GRANT ALL PRIVILEGES ON DATABASE database to new_user;
Posted by nccodemonkey at 10:01 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2015 (2)
    • ►  May (2)
  • ▼  2014 (28)
    • ►  June (2)
    • ►  May (4)
    • ►  April (4)
    • ►  March (2)
    • ►  February (4)
    • ▼  January (12)
      • Accessing Postgres UUID with JPA
      • Requests.py
      • Raspberry Pi WPA2 Enterprise
      • Secure JAX-RS REST endpoints
      • Grabbing ajax parameters in Jersey
      • Adding new users to postgres
      • No 'Access-Control-Allow-Origin' problem...
      • Note to Self... Java Web Projects
      • Don't say "but"
      • Securrrty
      • Magnus on USChess
      • Code for a baby...
  • ►  2013 (27)
    • ►  December (2)
    • ►  November (5)
    • ►  October (1)
    • ►  September (2)
    • ►  August (2)
    • ►  July (7)
    • ►  June (3)
    • ►  May (5)
Simple theme. Powered by Blogger.