Correct way to install psql without full Postgres on macOS?

You could also use homebrew to install libpq. brew install libpq This would give you psql, pg_dump and a whole bunch of other client utilities without installing Postgres. Unfortunately since it provides some of the same utilities as are included in the full postgresql package, brew installs it “keg-only” which means it isn’t in the … Read more

How to upgrade Git to latest version on macOS?

It’s simple if you already have Homebrew: Assuming you have homebrew installed, type the following: brew install git This should automatically install git and set it in your path, replacing the Apple one. Now quit and restart your terminal. Then check git version to confirm. git –version If the output of the above command shows … Read more

psql: could not connect to server: No such file or directory (Mac OS X)

WARNING: If you delete postmaster.pid without making sure there are really no postgres processes running you, could permanently corrupt your database. (PostgreSQL should delete it automatically if the postmaster has exited.). SOLUTION: This fixed the issue–I deleted this file, and then everything worked! /usr/local/var/postgres/postmaster.pid — and here is how I figured out why this needed … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)