Postgresql
Jump to navigation
Jump to search
psql
Connect to remote database:
export PGPASSWORD=password && psql --host=10.111.222.1 --port=5492 --username=user --no-password postgres
List databases
SELECT datname FROM pg_database;