Sabtu, 03 Juni 2017

PgAdmin 4 install

http://yallalabs.com/linux/how-to-install-pgadmin-4-in-desktop-mode-on-ubuntu-16-04/

https://www.youtube.com/watch?v=p6_aDUMVsug

Step 1. Installation Packages


# sudo apt-get install build-essential libssl-dev libffi-dev libgmp3-dev virtualenv python-pip libpq-dev python-dev

Step 2. Create the virtual environment

# cd /opt/
# mkdir enviromentpy
# cd enviromentpy/
# virtualenv pgadmin4
# cd pgadmin4
# source bin/activate

Step 3. Download and install PGAdmin 4

# wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v1.3/pip/pgadmin4-1.3-py2.py3-none-any.whl
# pip install pgadmin4-1.3-py2.py3-none-any.whl 

Step 4. Create the local configuration file for PGAdmin 4

# cd lib/python2.7/site-packages/pgadmin4
# touch config_local.py
– Edit config_local.py and add any desired configuration options (use the config.py file as a reference – any settings duplicated in config_local.py will override those in config.py). To configure PGAdmin 4 to run in single-user mode add the following line:
# echo "SERVER_MODE = False" >> lib/python2.7/site-packages/pgadmin4/config_local.py

Step 4. Run PGAdmin 4

#  python pgAdmin4.py
.
 Enter the email address and password to use for the initial pgAdmin user account:

        Email address: harnedy@ymail.com
– you will prompt it to add an email address and a password to access PGAdmin 4
Now Access at http://localhost:5050 and connect your PostgreSQL Server

Tidak ada komentar:

Posting Komentar