Search code examples
postgresqlhomebrewhl7-fhircreateuser

Postgres createuser command not found after installing with homebrew on my Mac


lawn-128-61-59-74:~ postgres$ createuser -R -P -S -D fhir

After running "brew install postgresql" and running postgres, when running the above command I am getting the following error:

"-bash: createuser: command not found"


Solution

  • run:

     sudo find / -name createuser
    

    This will find where the createuser command is located on your machine. Add what you find to your path.