Answers for "install postgresql mint"

SQL
0

install postgresql mint

$ sudo apt update -y
$ sudo apt install postgresql postgresql-contrib
$ sudo systemctl status postgresql
$ sudo -i -u postgres
$ psql
# \q
$ sudo pg_isready
$ sudo apt install libgmp3-dev build-essential libssl-dev
$ sudo apt install python3-virtualenv python3-dev libpq-dev
$ mkdir pgadmin4 && cd pgadmin4
$ virtualenv pgadmin4env
$ source pgadmin4env/bin/activate
$ pip install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v4.30/pip/pgadmin4-4.30-py3-none-any.whl
$ sudo nano pgadmin4env/lib/python3.8/site-packages/pgadmin4/config_local.py

import os
DATA_DIR = os.path.realpath(os.path.expanduser(u'~/.pgadmin/'))
LOG_FILE = os.path.join(DATA_DIR, 'pgadmin4.log')
SQLITE_PATH = os.path.join(DATA_DIR, 'pgadmin4.db')
SESSION_DB_PATH = os.path.join(DATA_DIR, 'sessions')
STORAGE_DIR = os.path.join(DATA_DIR, 'storage')
SERVER_MODE = False

$ python pgadmin4env/lib/python3.8/site-packages/pgadmin4/pgadmin4.py
Or
./pgadmin4env/bin/pgadmin4&

# Finally, head over to your browser and browse the address shown.
# http://127.0.0.1:5050

$ echo "alias startPg='~/pgAdmin4/venv/bin/python ~/pgAdmin4/venv/lib/python3.8/site-packages/pgadmin4/pgAdmin4.py'" >> ~/.bashrc
$ source ~/.bashrc
$ startpg
Posted by: Guest on May-22-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language