Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difficulty with your instructions #4

Open
pszolovits opened this issue Jan 21, 2022 · 2 comments
Open

Difficulty with your instructions #4

pszolovits opened this issue Jan 21, 2022 · 2 comments

Comments

@pszolovits
Copy link

I'm a total newbie with Postgres, and am running into a problem with your instructions on how to load the mimic4 (1.0) data into the Postgres application running on Mac OS Monterey (on a new MacBook Pro). I've started the Postgres application, which seems to be running fine, and I can access it via pgAdmin. I can also connect to the database simply with
psql -U
or just
sql
However, when I follow the instruction:
createuser -P -s -e -d mimicuser #creat user
psql -U mimicuser #launch psql

I get the following error:
(base) psz@Osler ~ % psql -U mimicuser
psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: FATAL: database "mimicuser" does not exist

It seems that creating the user does not create a corresponding database. Or perhaps the Postgres app stores its linking files somewhere other than /tmp.
Some very basic help would be much appreciated. Thank you.

@yikuan8
Copy link
Owner

yikuan8 commented Jan 22, 2022

I haven't used Postgres w/ Mac before. Neither did I encounter this issue. You may check this out which might help.

Also, you don't have to create a user for postgres if you are working on your PC. You can directly create the database if "psql -U" works for you. Please let me know if you need further help!

Btw, excited to meet academic grandfather here (Yuan is my advisor).

@pszolovits
Copy link
Author

pszolovits commented Jan 23, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants