Creating a user for postgresql

10 January 2004   2 comments   Linux

http://www.phpfreaks.com/postgresqlmanual/page/app-createuser.html

Mind That Age!

This blog post is 14 years old! Most likely, its content is outdated. Especially if it's technical.

PostgreSQL This took some time to figure out (found answer here)and it might come in handy sometime in the far future so I write it down here and now.
To create a user for the postgresql database on linux you have to do that from the linux user called postgres.

This would not work:

peterbe@computer:~$ createuser peterbe

What you need to do is this:

peterbe@computer:~$ su -
...log in as root...
computer:~# su postgres
computer:/root$ createuser peterbe

Now I know!

Comments

Peter Bengtsson
Test comment. Please ignore.
Peter Bengtsson
TEST

Your email will never ever be published


Related posts

Previous:
Vivisimo - clustered searching 08 January 2004
Next:
PythonPoint 10 January 2004
Related by Keyword:
When Docker is too slow, use your host 11 January 2018
How do log ALL PostgreSQL SQL happening 20 July 2015
Fastest database for Tornado 09 October 2013
Postgres collation errors on CITEXT fields when upgrading to 9.1 21 May 2012
Connecting with psycopg2 without a username and password 24 February 2011
Related by Text:
Be very careful with your add_header in Nginx! You might make your site insecure 11 February 2018
jQuery and Highslide JS 08 January 2008
I'm back! Peterbe.com has been renewed 05 June 2005
Anti-McCain propaganda videos 12 August 2008
I'm Prolog 01 May 2007