Welcome guys, i want
to tell you how can do installing pgadmin 4 for ubuntu with command
python, in here you must be login used to user root.
dba@dba-rizky:~$ su
-
Password:
After
login with user root, you can do install depedency on your pc
(build-essential, libssl-dev, libffi-dev,
virtualenv, python-pip, libpq-dev and python-dev).
root@dba-rizky:~#
sudo apt-get install build-essential libssl-dev
libffi-dev python-dev
root@dba-rizky:~#
sudo apt-get install virtualenv python-pip
libpq-dev python-dev
Next
you can do move directory to /opt, and in here you must be create new
folder with name “environmentpy”
and move in there.
root@dba-rizky:~# cd
/opt/
root@dba-rizky:/opt#
mkdir environmentpy
root@dba-rizky:/opt#
cd environmentpy/
After
moved, you can do follow command “virtualenv”
with name pgadmin4. And you can move pgadmin4.
root@dba-rizky:/opt/environmentpy#
virtualenv pgadmin4
root@dba-rizky:/opt/environmentpy#
cd pgadmin4
In
there location (/opt/environmentpy/pgadmin4) you can do
command “source” in folder
“bin/activate”.
root@dba-rizky:/opt/environmentpy/pgadmin4#
source bin/activate
And
then in here you can do download file pgadmin4 with command “wget”
on link here [here]
after
download file, you can do install file download with “pip”
(pgadmin4)
root@dba-rizky:/opt/environmentpy/pgadmin4# wget
https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v1.3/pip/pgadmin4-1.3-py2.py3-none-any.whl
(pgadmin4)
root@dba-rizky:/opt/environmentpy/pgadmin4# pip
install pgadmin4-.3-py2.py3-none-any.whl
After finished
installed, move to folder “lib/python2.7/site-packages/pgadmin4”
and do command “touch” file
python.
(pgadmin4)
root@dba-rizky:/opt/environmentpy/pgadmin4# cd
lib/python2.7/site-packages/pgadmin4
(pgadmin4)
root@dba-rizky:/opt/environmentpy/pgadmin4/lib/python2.7/site-packages/pgadmin4#
touch config_local.py
running
file pgadmin4.py with command “python”
on python with terminal ubuntu.
(pgadmin4)
root@dba-rizky:/opt/environmentpy/pgadmin4/lib/python2.7/site-packages/pgadmin4#
python pgAdmin4.py
Open your browser
and enter ip 127.0.0.1:5050
And
if u finished running query but you are forget disconnect server
database and you want diconnect can't do it or button server group
always reloading not move to database, open the terminal that was
already running the command run pgadmin. do it with the command ctrl
+ c in the console again run pgadmin with python command then run
again. as for how to run after install if forgot.
root@dba-rizky:/opt/environmentpy/pgadmin4/lib/python2.7/site-packages/pgadmin4#
cd /opt/environmentpy/pgadmin4/
root@dba-rizky:/opt/environmentpy/pgadmin4#
source bin/activate
(pgadmin4)
root@dba-rizky:/opt/environmentpy/pgadmin4# cd
lib/python2.7/site-packages/pgadmin4
(pgadmin4)
root@dba-rizky:/opt/environmentpy/pgadmin4/lib/python2.7/site-packages/pgadmin4#
touch config_local.py
(pgadmin4)
root@dba-rizky:/opt/environmentpy/pgadmin4/lib/python2.7/site-packages/pgadmin4#
python pgAdmin4.py
Opened again your
browser and enter ip 127.0.0.1:5050 on your browser.
Note : ***
PgAdmin 4 Support
Database Postgresql Version 9 ++, But Not Supported Database
Postgresql Version < 9
Thank You

Comments
Post a Comment