Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

pgadmin

Postgres DB not starting on Mac OSX: ERROR says: connections on Unix domain socket [closed]

January 2, 2023 by Tarik

I had the same problem today on Mac Sierra. In Mac Sierra you can find postmaster.pid inside /Users/<user_name>/Library/Application Support/Postgres/var-9.6. Delete postmaster.pid and problem will be fixed.

Categories macos Tags macos, pgadmin, pid, postgresql, unix Leave a comment

How to connect Postgres to localhost server using pgAdmin on Ubuntu?

December 20, 2022 by Tarik

Modify password for role postgres: sudo -u postgres psql postgres alter user postgres with password ‘postgres’; Now connect to pgadmin using username postgres and password postgres Now you can create roles & databases using pgAdmin How to change PostgreSQL user password?

Categories postgresql Tags database-connection, pgadmin, postgresql Leave a comment

Export and import table dump (.sql) using pgAdmin

December 18, 2022 by Tarik

In pgAdmin, select the required target schema in object tree (databases ->your_db_name -> schemas -> your_target_schema) Click on Plugins/PSQL Console (in top-bar) Write \i /path/to/yourfile.sql Press enter

Categories postgresql Tags pgadmin, postgresql, postgresql-9.2 Leave a comment

docker postgres pgadmin local connection

November 27, 2022 by Tarik

It’s a valid question don’t know why people feel “doesn’t seem possible to answer that question”. So, here’s how I do what you are trying to do: Pull postgres image from Docker Hub docker pull postgres:latest Run the container using the below command docker run -p 5432:5432 postgres Using docker’s inspect command find the IP … Read more

Categories postgresql Tags docker, pgadmin, postgresql Leave a comment

Export Postgresql table data using pgAdmin

November 16, 2022 by Tarik

Right-click on your table and pick option Backup.. On File Options, set Filepath/Filename and pick PLAIN for Format Ignore Dump Options #1 tab In Dump Options #2 tab, check USE INSERT COMMANDS In Dump Options #2 tab, check Use Column Inserts if you want column names in your inserts. Hit Backup button Edit: In case … Read more

Categories database Tags database, export, pgadmin, postgresql Leave a comment

How to add multiple columns to a table in Postgres?

November 16, 2022 by Tarik

Try this : ALTER TABLE table ADD COLUMN col1 int, ADD COLUMN col2 int;

Categories postgresql Tags pgadmin, postgresql Leave a comment

How to hide databases that I am not allowed to access

October 18, 2022 by Tarik

Had the same issue, as its a shared space on AWS with 1000 other DBs. pgAdmin 3 Make sure you are disconnected from your server. Right click your Server -> properties -> Advanced tab. In ‘DB restriction’ type in the name of your database(s) enclosed in single quotes and separated by spaces. E.g. ‘dback447’ pgAdmin … Read more

Categories heroku Tags heroku, pgadmin Leave a comment

Connect to a heroku database with pgadmin

October 14, 2022 by Tarik

Open the “Properties” of the Heroku server in pgAdminIII and change the “Maintenance DB” value to be the name of the database you want to connect to. The default setup is suitable for DBAs et al who can connect to any database on the server, but apparently that isn’t true in your case.

Categories database Tags database, heroku, pgadmin, postgresql Leave a comment
Newer posts
← Previous Page1 … Page3 Page4

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa