Answers for "install postgres 4 ubuntu command line"

SQL
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
0

how to install postgres in ubuntu

root@pooja-virtual-machine:~# apt-get install postgresql-11
Posted by: Guest on April-29-2021

Code answers related to "install postgres 4 ubuntu command line"

Code answers related to "SQL"

Browse Popular Code Answers by Language