Cài đặt

sudo apt-get install python-pip

Nếu bị lỗi do thằng khác thì remove bỏ

apt-get remove ibus-bogo

Nếu được thì cài pgcli, nếu không được thì cài lại pip

which pip

Cài pgcli

pip install pgcli

Gặp lỗi này

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-WarkSH/pgcli/

Thì cài

pip install --upgrade pip

Gặp lỗi này

 Could not import setuptools which is required to install from a source distribution.

Thì cài

sudo pip install -U setuptools

Các lệnh

Connect to server

pgcli -h localhost -p 5432 -U postgres

Restore

pg_restore -h localhost -p 5432 -U postgres -d old_db -v "/home/Desktop/dat.sql"

results matching ""

    No results matching ""