Changes between Version 11 and Version 12 of UsersWikiPostGIS20Ubuntu1204


Ignore:
Timestamp:
May 5, 2012, 10:51:10 PM (12 years ago)
Author:
jeffmeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiPostGIS20Ubuntu1204

    v11 v12  
    124124Note that some online documentation recommends setting up a system user account called 'postgres' with superuser privileges, but this is not a requirement for getting started.
    125125
    126 Next steps - start logged in as your user account
     126Next steps - start these steps logged in as your user account:
     127'''NOTE:''' you do not have to use the same password for the system and PostgreSQL user accounts that share the same name.
    127128{{{
    128129$ sudo passwd postgres
     
    143144
    144145If 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:
    145 
    146 {{{
    147 
    148 }}}
    149 
    150 Now, you should be able to
     146{{{
     147user$ sudo -s -u postgres
     148postgres$ createuser --superuser $user     ---- note: createuser is a command line tool to create a PostgreSQL user, not a system account 
     149postgres$ createdb $user
     150postgres$ psql
     151psql (9.1.3)
     152Type "help" for help.
     153
     154postgres=# \password $user
     155Enter new password:
     156Enter it again:
     157postgres=# \q
     158postgres$ exit
     159user$ psql
     160psql (9.1.3)
     161Type "help" for help.
     162
     163$user=#
     164}}}
     165
     166As noted above, this is a great resource: https://help.ubuntu.com/community/PostgreSQL.
     167
    151168
    152169If you connect through pgadmin, use the following attributes: