How to open pgAdmin 4?
I just closed pgAdmin 4 in the Activity Monitor and started it again. Then I see a new tab open up with pgAdmin 4. It apparently is running on a different port (63467) than shown in the screenshots.
Today is my second day using pgAdmin, I downloaded it yesterday and it worked fine, but today I couldn't find a way to start it up again.
Solution was this.. I found the downloaded .dmg file again (pgadmin4-3.5.dmg) and clicking on that as I did yesterday, then accepting the warning, it created an .app file same as yesterday (pgAdmin 4.app). I then copied that file, and pasted it into my Applications folder, which I didn't do yesterday.
After doing that I can find that .app file with Launcher, click on it, and it opens a browser tab, starts the client, and shows the server connection I created yesterday.
Since I like shortcuts then I prepared a solution which opens pgAdmin 4 with a quick Alfred/Spotlight shortcut called db without problems for me:
Assuming you have pgAdmin 4.app
inside Applications folder already then save the following script as db.app
and you should be good to go:
#!/bin/bash
# Kill all possible previous pgadmin processes:
for pid in $(pgrep -i pgadmin)
do
kill -9 $pid
done
# Open new pgadmin process:
open -a pgAdmin\ 4
After that I could use Alfred/Spotlight search with a keyword db
and it starts up new tab with pgAdmin session.
I am having a similar issue. I installed PostgreSQL11 and Pgadmin4 on my Mac and both worked absolutely fine. However next day when I started my system, PgAdmin was missing. I couldn't find it anywhere. I could only find the .dmg file, when I clicked on it it went on and did the entire installation again. No error came such as this application is already present or not. Then it worked absolutely fine but next day it went back to the same status. This time I didn't shut down my system and it remained there even after I shut down the server after clicking on elephant icon next to my wifi icon on top right. However when again I switched off the system it went away and I had to reinstall once again. Another thing I noticed is that I can see Postgre SQL in Launchpad but don't see PgAdmin 4 elephant icon in my applications folder too. Neither can I find the PgAdmin 4.app file which most online forums mention as solution to this issue.