Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cerulean)
  • No Skin
Collapse
Brand Logo

Fórum

  1. Home
  2. Uživatelské návody
  3. Postgres Installation

Postgres Installation

Scheduled Pinned Locked Moved Uživatelské návody
1 Posts 1 Posters 196 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • raven2czR Offline
    raven2czR Offline
    raven2cz
    wrote on last edited by
    #1

    Postgres Installation

    sudo pacman -S postgresql postgis
    sudo -u postgres -i
    initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data/'
    exit
    sudo systemctl enable --now postgresql.service
    #sudo systemctl start postgresql.service
    sudo su postgres
    psql --version
    psql
    # insert admin password
    \password
    \q
    sudo pamac install pgadmin4
    

    Upgrade databáze (pokud nejsou update scripts)

    Je nutné smazat :

    /var/lib/postgres/data/
    

    přidělit práva /var/lib/postgres/ pro user a skupinu postgres

    potom znovu vytvořit databáze repository:

    initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data/'
    

    pak již znovu nahodit server.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups