Skip to content

PabloVitorr/Bootcamp_The_Complete_SQL_Bootcamp_Udemy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository for The Complete SQL Bootcamp Go From Zero To Hero

Ubuntu Postgres


Preparing the environment

  • PostgreSQL Installation

    • Add the PostgreSQL repository to the sources.list file:

      sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
    • Download the PostgreSQL signing key and add it to the system:

      wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
    • Update the list of available packages:

      sudo apt-get update
    • Install the desired version of PostgreSQL:

      sudo apt-get -y install postgresql

  • pgAdmin4 installation

    • Install curl:

      sudo apt install curl
    • Install the public key to the repository:

      curl -fsS https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o /usr/share/keyrings/packages-pgadmin-org.gpg
    • Create the repository configuration file:

      sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/packages-pgadmin-org.gpg] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
    • Install for Desktop and Web modes:

      sudo apt install pgadmin4
    • After installing PostgreSQL and pgAdmin4, simply perform the initial user and connection configurations as desired.


Challenges


📌 General Content

About

Repository for The Complete SQL Bootcamp Go From Zero To Hero

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published