
pgAdmin is an open-source software project for administrating and managing PostgreSQL database server that includes a graphical administration interface, an SQL query tool, and a procedural code debugger. This guide explains how to install pgAdmin 4 on FreeBSD 12.2.
Access the PostgreSQL instance.
Modify the default user postgres password.
Create user pgadmin.
Create a testdb database owned by user pgadmin.
Exit the PostgreSQL instance
Create a symbolic link of Python3.8 binary to /usr/local/bin/python.
Install and upgrade pip, which is a package manager for Python.
Install the virtualenv package, which is used to create isolated Python environments.
Create a virtual environment for pgAdmin.
Activate the Virtual environment.
Install Python dependencies.
Install Python SQLite3 package.
Download and install Python wheel package for pgAdmin. To get the latest version, go to pgAdmin wheel packages.
Create the data directories and give write permissions.
Install the nano editor.
Copy the pgAdmin configuration file.
Edit the configuration file.
Find the line DEFAULT_SERVER = '127.0.0.1' and change it to match the line below.
Save and exit the file.
Run pgAdmin 4.
Enter your email address and password to create your pgAdmin administrator account.
Open your browser and navigate to your server's IP address at port 5050 to access the pgAdmin 4 user interface. Use the email address and password that you set in the previous step. For example:
Go to the pgAdmin 4 Vultr Console and click Add New Server.
You'll be prompted with a dialog box. Enter your preferred server name in the Name field.
Switch to the Connection tab and enter the required fields with the appropriate data.
testdb under Maintenance database.pgadmin under Username.
After a successful connection, choose your server in the upper left corner, then expand the arrows to access the testdb database.
You have installed pgAdmin 4 for PostgreSQL Server. You can now manage your database server via the dashboard.
0 Comments
Be the first to comment and share your perspective with the community.