DEV Community

Discussion on: What do you Google EVERY. SINGLE. TIME. and never just memorize?

Collapse
 
ben profile image
Ben Halpern

For me it's "manually start postgresql"

Every once in a while my postgres server isn't running and I know to punch that into my browser and land on this Stack Overflow question, where I proceed to copy this command into my terminal:

pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

It happens infrequently enough that I never bother to alias it or remember how to type it out. I just remember what to Google.

Collapse
 
galdin profile image
Galdin Raphael

I have postgres installed via homebrew. So I use brew info postgres to copy the start command :)

Collapse
 
svemaraju profile image
Srikanth

I was gonna say this. Have bookmarked the stackoverflow post on this. :D

Collapse
 
lepinekong profile image
lepinekong

So did I then I realize how many precious minutes of my life I'm losing so I decided to buy a domain for 75 cents mycodesnippets.space :) I write things down little by little as soon as I need it the first time or I risk to never do it by lazyness !

Collapse
 
kaustav1996 profile image
Kaustav Banerjee

cant you just sudo service postgresql start ? :P

Collapse
 
shelbyspees profile image
shelby spees (she/her)

On Linux, yes. On OSX, no unfortunately.

Collapse
 
samxeshun profile image
Kwaku Eshun

Oh yes, I even googled and used this today because my service keeps stopping.