Skip to content

Instantly share code, notes, and snippets.

@fabianoalmeida
Last active December 17, 2015 09:59
Show Gist options
  • Select an option

  • Save fabianoalmeida/5591059 to your computer and use it in GitHub Desktop.

Select an option

Save fabianoalmeida/5591059 to your computer and use it in GitHub Desktop.

Revisions

  1. fabianoalmeida revised this gist May 16, 2013. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions install_postgresql_mac
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,7 @@
    # Uninstall all versions

    http://stackoverflow.com/questions/8037729/completely-uninstall-postgresql-9-0-4-from-mac-osx-lion

    # Download .dmg from http://postgresapp.com/
    # Unzip the file and copy do Applications folder
    # Run Postgres.app
  2. fabianoalmeida revised this gist May 16, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_postgresql_mac
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    # Download .dmg from [http://postgresapp.com/](http://postgresapp.com/)
    # Download .dmg from http://postgresapp.com/
    # Unzip the file and copy do Applications folder
    # Run Postgres.app
    # After this action will appear an elephant on menu bar: Postgres server is running
    # Follow this steps from documentation: [http://postgresapp.com/documentation#toc_1](http://postgresapp.com/documentation#toc_1)
    # Follow this steps from documentation: http://postgresapp.com/documentation#toc_1
    # On command line execute

    $ psql -d postgres
  3. fabianoalmeida revised this gist May 16, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_postgresql_mac
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    # Download .dmg from http://postgresapp.com/
    # Download .dmg from [http://postgresapp.com/](http://postgresapp.com/)
    # Unzip the file and copy do Applications folder
    # Run Postgres.app
    # After this action will appear an elephant on menu bar: Postgres server is running
    # Follow this steps from documentation: http://postgresapp.com/documentation#toc_1
    # Follow this steps from documentation: [http://postgresapp.com/documentation#toc_1](http://postgresapp.com/documentation#toc_1)
    # On command line execute

    $ psql -d postgres
  4. fabianoalmeida revised this gist May 16, 2013. 1 changed file with 9 additions and 4 deletions.
    13 changes: 9 additions & 4 deletions install_postgresql_mac
    Original file line number Diff line number Diff line change
    @@ -4,11 +4,16 @@
    # After this action will appear an elephant on menu bar: Postgres server is running
    # Follow this steps from documentation: http://postgresapp.com/documentation#toc_1
    # On command line execute
    <code>$ psql -d postgres</code>

    $ psql -d postgres

    # That will open the postgre command line
    # Will need create a new role to access the database. Execute
    <code>postgres=# create role USER_NAME login createdb;</code>
    <code>postgres=# \q</code>

    postgres=# create role USER_NAME login createdb;
    postgres=# \q

    # Where USER_NAME must be your username to access the database
    # Try to connect on command line
    <code>psql -d USER_NAME</code>

    psql -d USER_NAME
  5. fabianoalmeida created this gist May 16, 2013.
    14 changes: 14 additions & 0 deletions install_postgresql_mac
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    # Download .dmg from http://postgresapp.com/
    # Unzip the file and copy do Applications folder
    # Run Postgres.app
    # After this action will appear an elephant on menu bar: Postgres server is running
    # Follow this steps from documentation: http://postgresapp.com/documentation#toc_1
    # On command line execute
    <code>$ psql -d postgres</code>
    # That will open the postgre command line
    # Will need create a new role to access the database. Execute
    <code>postgres=# create role USER_NAME login createdb;</code>
    <code>postgres=# \q</code>
    # Where USER_NAME must be your username to access the database
    # Try to connect on command line
    <code>psql -d USER_NAME</code>