MIT-LCP / eicu-code

Code and website related to the eICU Collaborative Research Database
https://eicu-crd.mit.edu
MIT License
320 stars 219 forks source link

Database creation problem #71

Closed ghost closed 4 years ago

ghost commented 5 years ago

psql "dbname=eicu user=eicu options=--search_path=eicu_crd" -v ON_ERROR_STOP=1 -f postgres_create_tables.sql psql: FATAL: Peer authentication failed for user "eicu" Makefile:347: recipe for target 'eicu-build-gz' failed make: *** [eicu-build-gz] Error 2

tnaumann commented 5 years ago

This error suggests there's a problem connecting to your postgres database using peer authentication. Have you checked that you're running this script as the eicu user? Otherwise, have you tried resolving this issue using another means of authentication? E.g., see https://gist.github.com/AtulKsol/4470d377b448e56468baef85af7fd614.