Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.
How to Install PostgreSQL and PGAdmin on Ubuntu 24.04 LTS
Description
Learn how to *install PostgreSQL and PGAdmin on Ubuntu 24.04 LTS* step by step. PostgreSQL is a powerful open-source relational database system, and PGAdmin is a feature-rich GUI tool for managing PostgreSQL databases. In this guide, we’ll cover how to set up both tools, configure them, and start using them efficiently.
---
What You’ll Learn:
1. Installing PostgreSQL on Ubuntu 24.04 LTS.
2. Installing and setting up PGAdmin.
3. Configuring PostgreSQL to work with PGAdmin.
---
Steps to Install PostgreSQL
#### 1. *Update System Packages*
Keep your system up to date:
```bash
sudo apt update && sudo apt upgrade -y
```
#### 2. *Install PostgreSQL*
Install the PostgreSQL database server:
```bash
sudo apt install postgresql postgresql-contrib -y
```
#### 3. *Start and Enable PostgreSQL*
Ensure the PostgreSQL service is running and enabled at boot:
```bash
sudo systemctl start postgresql
sudo systemctl enable postgresql
```
#### 4. *Switch to PostgreSQL User*
Switch to the default PostgreSQL user to configure the database:
```bash
sudo -i -u postgres
```
#### 5. *Access PostgreSQL Prompt*
Enter the PostgreSQL shell:
```bash
psql
```
Create a new database user or modify configurations as needed.
Exit the shell using:
```sql
\q
```
---
Steps to Install PGAdmin
#### 1. *Install Dependencies*
Install required dependencies:
```bash
sudo apt install curl ca-certificates -y
```
#### 2. *Add the PGAdmin Repository*
Import the repository key and add the PGAdmin repository:
```bash
#### 3. *Install PGAdmin*
Update the package list and install PGAdmin:
```bash
sudo apt update
sudo apt install pgadmin4-web -y
```
#### 4. *Configure PGAdmin*
Run the setup script to configure PGAdmin:
```bash
sudo /usr/pgadmin4/bin/setup-web.sh
```
Set up an admin email and password for accessing the PGAdmin web interface.
#### 5. *Access PGAdmin*
Open a browser and go to `http://server-ip/pgadmin4` or `http://127.0.0.1/pgadmin4`.
Log in using the admin credentials you set earlier.
---
Connect PostgreSQL to PGAdmin
1. Open PGAdmin and add a new server.
2. Provide the *name* for the server.
3. Under the *Connection* tab, add:
Host: `localhost`
Port: `5432`
Username: `postgres`
Password: The password set for the `postgres` user.
4. Save the configuration and start managing your PostgreSQL databases.
---
Why Use PostgreSQL and PGAdmin?
**PostgreSQL**: Reliable, feature-rich, and highly extensible database.
**PGAdmin**: Simplifies database management with a user-friendly GUI.
By following these steps, you’ll have PostgreSQL and PGAdmin installed and ready for use on Ubuntu 24.04 LTS. Like, share, and subscribe for more Linux tutorials!
---
What You’ll Learn:
1. Installing PostgreSQL on Ubuntu 24.04 LTS.
2. Installing and setting up PGAdmin.
3. Configuring PostgreSQL to work with PGAdmin.
---
Steps to Install PostgreSQL
#### 1. *Update System Packages*
Keep your system up to date:
```bash
sudo apt update && sudo apt upgrade -y
```
#### 2. *Install PostgreSQL*
Install the PostgreSQL database server:
```bash
sudo apt install postgresql postgresql-contrib -y
```
#### 3. *Start and Enable PostgreSQL*
Ensure the PostgreSQL service is running and enabled at boot:
```bash
sudo systemctl start postgresql
sudo systemctl enable postgresql
```
#### 4. *Switch to PostgreSQL User*
Switch to the default PostgreSQL user to configure the database:
```bash
sudo -i -u postgres
```
#### 5. *Access PostgreSQL Prompt*
Enter the PostgreSQL shell:
```bash
psql
```
Create a new database user or modify configurations as needed.
Exit the shell using:
```sql
\q
```
---
Steps to Install PGAdmin
#### 1. *Install Dependencies*
Install required dependencies:
```bash
sudo apt install curl ca-certificates -y
```
#### 2. *Add the PGAdmin Repository*
Import the repository key and add the PGAdmin repository:
```bash
#### 3. *Install PGAdmin*
Update the package list and install PGAdmin:
```bash
sudo apt update
sudo apt install pgadmin4-web -y
```
#### 4. *Configure PGAdmin*
Run the setup script to configure PGAdmin:
```bash
sudo /usr/pgadmin4/bin/setup-web.sh
```
Set up an admin email and password for accessing the PGAdmin web interface.
#### 5. *Access PGAdmin*
Open a browser and go to `http://server-ip/pgadmin4` or `http://127.0.0.1/pgadmin4`.
Log in using the admin credentials you set earlier.
---
Connect PostgreSQL to PGAdmin
1. Open PGAdmin and add a new server.
2. Provide the *name* for the server.
3. Under the *Connection* tab, add:
Host: `localhost`
Port: `5432`
Username: `postgres`
Password: The password set for the `postgres` user.
4. Save the configuration and start managing your PostgreSQL databases.
---
Why Use PostgreSQL and PGAdmin?
**PostgreSQL**: Reliable, feature-rich, and highly extensible database.
**PGAdmin**: Simplifies database management with a user-friendly GUI.
By following these steps, you’ll have PostgreSQL and PGAdmin installed and ready for use on Ubuntu 24.04 LTS. Like, share, and subscribe for more Linux tutorials!
Keywords & Tags
#Database
#pgAdmin 4
#Ubuntu
#pgAdmin
#How to Install
#PostgreSQL 11
#How to Install PostgreSQL
#pgAdmin 4 on Ubuntu
#PostgreSQL u0026 pgAdmin 4
#PostgreSQL administration tool
#EnterpriseDB
#install postgresql windows command line
#how to install postgresql in Ubuntu
#postgresql download for Ubuntu
#install postgresql ubuntu
#postgresql download for Ubuntu 64-bit
#postgresql client
#how to install postgresql in linux
#install postgresql mac
#Ubuntu 24.04
#Ubuntu 24.04 LTS
#Linux
#PostgreSQL Tutorials
#PostgreSQL DBA Tutorials
#PostgreSQL tutorials for beginner
#PostgreSQL tutorials for beginners
#PostgreSQL Installation guide
#PostgreSQL 16 download
#PostgreSQL release date
#Install PostgreSQL 16 on Ubuntu
#Install PostgreSQL 16 on Ubuntu 24.04
#Install PostgreSQL 16 on Ubuntu 24
#Install PostgreSQL 16 on Ubuntu 22.04
#PostgreSQL 16 install on Ubuntu 24.04
#PostgreSQL 16 install on Ubuntu
#PostgreSQL 16 install on Ubuntu 24
#Postgresql 16 install guide
More from User
10:41
Así Es Una Mansión En Miami De 10 Millones De Dólares
online
01:20:38
La Empresaria Multi-Millonaria Que Empezó De Cero | Marta Marcilla
online
20:46
Pruebo La Nueva Máquina Que Genera $10.79/Día
online
15:37
Vivo Un Día Con Un Multi-Millonario
online
15:20
Pruebo La Forma Más Perezosa De Ganar Dinero Online
online
01:14:26
Cómo Crear Una Marca Personal En 2026 | Colin Yurcisin
online
Related Videos
14:44
Install PostgreSQL 18 with pgaudit on Ubuntu 24.04 LTS 🔥 Step-by-Step Setup & Configuration Guide
Chitt Ranjan (Chirag) Mahto
53:21
PgDog + PostgreSQL 18 High-Availability (HA) on Ubuntu 24.04 LTS #pgdog #postgresql18 #postgresql
Chitt Ranjan (Chirag) Mahto
14:04
How To Run Windows Apps on Ubuntu 24.04 Linux | Install Windows Apps on Linux
online
10:33
Java Setup on Ubuntu 24.04 LTS | Install IntelliJ IDEA & Run Your Code
Multi Needs
19:38
How to Install Ubuntu 24.04 LTS
Nerd on the Street
10:33
How to Create and Run a Java Project on IntelliJ IDEA | Install IntelliJ IDEA on Ubuntu 24.04 LTS
online