Answers for "how to install postgresql on ubuntu 18.04"

SQL
14

postgresql install ubuntu

sudo apt update
sudo apt install postgresql postgresql-contrib

sudo -u postgres createuser --interactive

sudo -u postgres createdb database1
Posted by: Guest on June-22-2020
1

ubuntu install postgresql 12

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install postgresql
Posted by: Guest on March-23-2021
3

ubuntu install and configure postgres server

sudo apt update
sudo apt install postgresql postgresql-contrib
Posted by: Guest on August-12-2020
0

install postgres 11 ubuntu

sudo apt update && sudo apt -y upgrade

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

RELEASE=$(lsb_release -cs)
echo "deb http://apt.postgresql.org/pub/repos/apt/ ${RELEASE}"-pgdg main | sudo tee  /etc/apt/sources.list.d/pgdg.list

cat /etc/apt/sources.list.d/pgdg.list

sudo apt update

sudo apt -y install postgresql-11

sudo -u postgres psql

postgres=# CREATE USER wcl WITH PASSWORD 'wclPassword';
postgres=# CREATE DATABASE wcl;
postgres=# ALTER USER wcl WITH SUPERUSER;
postgres=# exit
Posted by: Guest on November-26-2020
3

install postgresql ubuntu

sudo apt install postgresql postgresql-contrib
Posted by: Guest on July-18-2020

Code answers related to "how to install postgresql on ubuntu 18.04"

Code answers related to "SQL"

Browse Popular Code Answers by Language