Changes between Version 17 and Version 18 of UsersWikiPostGIS20Ubuntu1204


Ignore:
Timestamp:
May 6, 2012, 12:43:08 AM (12 years ago)
Author:
jeffmeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiPostGIS20Ubuntu1204

    v17 v18  
    180180If you're going to want to connect to the PostgreSQL database using your own account (so you don't have to fool around with 'postgres'), you may want to do this:
    181181{{{
    182 user$ sudo -s -u postgres
    183 postgres$ createuser --superuser $user     ---- note: createuser is a command line tool to create a PostgreSQL user, not a system account 
    184 postgres$ createdb $user
     182$USER$ sudo -s -u postgres
     183postgres$ createuser --superuser $USER     ---- note: createuser is a command line tool to create a PostgreSQL user, not a system account 
     184postgres$ createdb $USER
    185185postgres$ psql
    186186psql (9.1.3)
    187187Type "help" for help.
    188188
    189 postgres=# \password $user
     189postgres=# \password $USER
    190190Enter new password:
    191191Enter it again:
    192192postgres=# \q
    193193postgres$ exit
    194 user$ psql
     194$USER$ psql
    195195psql (9.1.3)
    196196Type "help" for help.
    197197
    198 $user=#
     198$USER=#                        ---- voila!
    199199}}}
    200200