Today, in this article, we show how to Installing PostgreSQL pgAdmin 4 on Ubuntu 22.04 LTS. Now that you are familiar with the pgAdmin idea, according to the creators, the latest version, pgAdmin 4, required a complete rewrite of the original pgAdmin program. This version was created by combining Python and JavaScript/jQuery. Depending on your use case, you can now use pgAdmin as a desktop execution environment or as a web application server.
Due to its simplicity of use, Ubuntu Desktop, a Linux distribution or operating system created by Canonical, is one of the most used. Also, it is one of the starter options for Linux beginners. Most Internet servers also run the server edition, which we will not focus on in this article. These operating systems are typically distributed to hackers or other professional users; therefore, they are not as often used in homes.
The most effective open source management tool for Postgres, the most advanced open source database, is pgAdmin. Both inexperienced and experienced Postgres users can benefit from pgAdmin 4’s robust graphical interface, which makes it easy to create, maintain, and use database objects. We have mentioned below the steps to install PostgreSQL pgAdmin 4 on Ubuntu 22.04 LTS Jammy Linux.
Steps to Install PostgreSQL pgAdmin 4 on Ubuntu 22.04 LTS Jammy Linux
Step 1: Install PostgreSQL on Ubuntu
sudo apt update
sudo apt install postgresql postgresql-contrib
Step 2: Check the PostgreSQL Service
postgresql service status
Step 3: connect to PostgreSQL Database
sudo su – postgres
psql
sudo -u postgres psql
conninfo
I
q
Step 4: create a new paper
du
ALTER USER postgres WITH PASSWORD’admin123‘;
createuser -interactive
Step 5: create a new database
created by Henry
I
Step 6: Open Postgres Shell with new function
sudo adduser henry
sudo su – henry
psql
conninfo
Step 7: I create Tables in the database
CREATE TABLE table_name (column_name1 datatype (length) column_contraint,column_name2 datatype (length) column_contraint,column_name3 datatype (length) column_contraint,);
Final Words
We hope you like our article on how to Install PostgreSQL pgAdmin 4 on Ubuntu 22.04 LTS Jammy Linux. Regardless of how you use pgAdmin 4, you’ll find that it accepts one or more users with ease and generates a configuration that looks and feels like a desktop application. With improved UI elements, more dashboard and deployment options, and a minimal learning curve, pgAdmin 4 is easy to use.